[sparc] inferior SEGV while calling Ada subprogram
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
49a45ecf
JB
12010-10-01 Joel Brobecker <brobecker@adacore.com>
2
3 * sparc-tdep.c (sparc32_frame_align): New function.
4 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
5 * sparc64-tdep.c (sparc64_frame_align): New function.
6 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
7
a5916a62
L
82010-09-30 H.J. Lu <hongjiu.lu@intel.com>
9
10 * defs.h (MAX_REGISTER_SIZE): Set to 64.
11
00b5771c
TT
122010-09-30 Tom Tromey <tromey@redhat.com>
13
14 * symfile.h (struct sym_fns) <next>: Remove.
15 (add_symtab_fns): Update.
16 * symfile.c (sym_fns_ptr): New typedef.
17 (symtab_fns): Now a VEC.
18 (add_symtab_fns): Update. Change argument type.
19 (find_sym_fns): Update. Change return type.
20 (get_symfile_segment_data): Update.
21 * objfiles.h (struct objfile) <sf>: Now const.
22 * somread.c (som_sym_fns): Now const. Update.
23 * xcoffread.c (xcoff_sym_fns): Now const. Update.
24 * mipsread.c (ecoff_sym_fns): Now const. Update.
25 * machoread.c (macho_sym_fns): Now const. Update.
26 * elfread.c (elf_sym_fns): Now const. Update.
27 (elf_sym_fns_gdb_index): Likewise.
28 * dbxread.c (aout_sym_fns): Now const. Update.
29 * coffread.c (coff_sym_fns): Now const. Update.
30
38f12cfc
TT
312010-09-30 Tom Tromey <tromey@redhat.com>
32
33 * value.c (value_primitive_field): Take 'offset' into account for
34 packed field.
35
9ae8282d
TT
362010-09-30 Tom Tromey <tromey@redhat.com>
37
38 * completer.c (count_struct_fields): Handle anonymous structs and
39 unions.
40 (add_struct_fields): Likewise.
41
e9e07ba6
JK
422010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
43
44 Fix printing parameters of inlined functions.
45 * ada-lang.c (is_known_support_routine)
46 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
47 for find_frame_funname.
48 * python/py-frame.c (frapy_name): Likewise.
49 * stack.c (find_frame_funname): New parameter funcp. Update the
50 function comment. Fill it in.
51 (print_frame): New variable func. Initialize it by
52 find_frame_funname. Print arguments only if FUNC is not NULL. Use
53 FUNC as the parameter of print_args_stub.
54 * stack.h (find_frame_funname): New parameter funcp. Remove the
55 function declaration comment.
56
cd2effb2
JK
572010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
58
59 PR corefiles/12071.
60 * inferior.c (have_live_inferiors): New variables old_chain, inf and
61 tp. Iterate INFERIOR_LIST and call target_has_execution.
62
bceffbf3
JK
632010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
64
65 Fix GDB crash on inferior calls with self-referencing classes.
66 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
67 member fields.
68
abc72ce4
DE
692010-09-29 Doug Evans <dje@google.com>
70
71 Workaround for gcc/45682.
72 * dwarf2read.c (partial_die_info): New fields fixup_called,
73 linkage_name.
74 (guess_partial_die_structure_name): Renamed from guess_structure_name.
75 Move definition next to use. Use linkage_name to determine if class
76 is in a namespace. All callers updated.
77 (fixup_partial_die): Return early if already called.
78 Set fixup_called when done.
79 (guess_full_die_structure_name): New function.
80 (determine_prefix): Call it for class/struct/union dies if c++ and
81 .debug_types section is present and parent is DW_TAG_compile_unit.
82
0ac7be25
JB
832010-09-28 Joel Brobecker <brobecker@adacore.com>
84
85 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
86 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
87
6e1bb179
JB
882010-09-28 Joel Brobecker <brobecker@adacore.com>
89
90 * NEWS: Announce Ravenscar Profile support.
91
036b1ba8
JB
922010-09-28 Joel Brobecker <brobecker@adacore.com>
93 Jerome Guitton <guitton@adacore.com>
94
95 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
96 New files.
97 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
98 ravenscar-sparc-thread.o to gdb_target_obs.
99
474011fb
JB
1002010-09-28 Joel Brobecker <brobecker@adacore.com>
101
102 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
103 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
104
99e24b90
PM
1052010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
106
107 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
108 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
109 skip_main_prologue method.
110
987d643c
TT
1112010-09-27 Tom Tromey <tromey@redhat.com>
112
113 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
114 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
115 Only emit a given psymbol once.
116 (struct signatured_type_index_data) <psyms_seen>: New field.
117 (write_one_signatured_type): Update.
118 (cleanup_htab): New function.
119 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
120 version to 3.
121 (save_gdb_index_command): Update index documentation.
122
d3aff959
TT
1232010-09-27 Tom Tromey <tromey@redhat.com>
124
125 * bcache.c (expand_hash_table): Use hash_function, not hash.
126
716b65bf
TT
1272010-09-27 Tom Tromey <tromey@redhat.com>
128
129 * gdb_wchar.h: Change minimum libiconv to 0x108.
130
1736ad11
JK
1312010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
132
133 Fix lost siginfo_t for inferior calls.
134 * infrun.c
135 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
136 (save_inferior_thread_state): New variables regcache, gdbarch and
137 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
138 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
139 using REGCACHE.
140 (restore_inferior_thread_state): New variables regcache and gdbarch.
141 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
142 REGCACHE. Free also SIGINFO_DATA.
143
4b5246aa
TT
1442010-09-24 Tom Tromey <tromey@redhat.com>
145
146 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
147 MAYBE_SWAPs.
148 (dw2_map_symbol_names): Likewise.
149
2a7d6a25
SW
1502010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
151
152 * valops.c (find_oload_champ_namespace_loop): replace incorrect
153 discard_cleanups do_cleanups.
154
b53a1623
PA
1552010-09-24 Pedro Alves <pedro@codesourcery.com>
156
e6ee044d
PA
157 PR gdb/11842
158
b53a1623
PA
159 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
160 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
161 si_code is < 0. Check for si_code == SI_TIMER before checking for
162 si_code < 0.
163
96a8853a
PA
1642010-09-24 Pedro Alves <pedro@codesourcery.com>
165
166 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
167
39383a48
JB
1682010-09-22 Joel Brobecker <brobecker@adacore.com>
169
170 * ada-tasks.c (read_atcb): Do not compute the task ptid when
171 debugging a core file.
172
d31d2fc3
JK
1732010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
174
175 Code cleanup.
176 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
177 (free_objfile) <objfile->name != NULL>: Remove the conditional around
178 xfree.
179 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
180 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
181 Remove.
182 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
183 Remove the conditional.
184 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
185
7f6130ff
JK
1862010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
187
188 * main.c: Include objfiles.h.
189 (captured_main): New variable objfile. Call
190 load_auto_scripts_for_objfile for ALL_OBJFILES.
191
c2b0a229
JK
1922010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
193
194 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
195 DW_TAG_constant.
196
72929c62
JB
1972010-09-22 Joel Brobecker <brobecker@adacore.com>
198
199 * dwarf2read.c (scan_partial_symbols): Add handling of
200 DW_TAG_constant DIEs.
201 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
202
496c0e1b
JB
2032010-09-22 Joel Brobecker <brobecker@adacore.com>
204
205 * configure.ac: Add support for --enable-gdbserver.
206 * configure: Regenerate.
207
ec322823
SW
2082010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
209
210 PR C++/12028
211 * valops.c (find_oload_champ_namespace_loop): removed incorrect
212 'old_cleanups' reassignment.
213
1558ab4c
JK
2142010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
215
216 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
217 characters.
218
875b4ff5
PM
2192010-09-16 Phil Muldoon <pmuldoon@redhat.com>
220
221 PR mi/11407
222 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
223 read_var_value and common_val_print and print a warning.
224
65dedcb2
JK
2252010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
226
227 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
228 keep the list in alphabetical order. Use longer e-mail address.
229
0e780a22
TT
2302010-09-15 Tom Tromey <tromey@redhat.com>
231
232 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
233
62234ccc
TT
2342010-09-15 Tom Tromey <tromey@redhat.com>
235
236 * charset.c (iconv_open): New define.
237 (iconv): Likewise.
238 (iconv_close): Likewise.
239 (phony_iconv_open): Add "phony_" prefix.
240 (phony_iconv_close): Likewise.
241 (phony_iconv): Likewise.
242 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
243 Change how INTERMEDIATE_ENCODING is defined.
244
4950bc1c
DE
2452010-09-15 Doug Evans <dje@google.com>
246
247 * dwarf2read.c (struct die_info): Fix comment.
248
349126ea
AM
2492010-09-15 Alan Modra <amodra@gmail.com>
250
251 PR 4606
252 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
253 than setting SEC_NEVER_LOAD on sections that need not be copied.
254
923c6a3d
TT
2552010-09-14 Tom Tromey <tromey@redhat.com>
256
257 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
258 (start_psymtab_common, allocate_psymtab, discard_psymtab):
259 Declare.
260 * symfile.h (extend_psymbol_list): Remove.
261 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
262 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
263 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
264
a9e6a4bb
JK
2652010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
266
267 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
268 Update the comment.
269
7155d578
TT
2702010-09-14 Tom Tromey <tromey@redhat.com>
271
272 PR symtab/8399:
273 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
274 for unrecognized frame base expression.
275
515ed532
TT
2762010-09-14 Tom Tromey <tromey@redhat.com>
277
278 PR exp/11803:
279 * value.c (value_static_field): Use value_of_variable.
280
b467f580
PM
2812010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
282
283 * m32r-rom.c: Replace winsock.h with winsock2.h header.
284 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
285
450ca57c
SW
2862010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
287
288 PR symtab/11992:
289 * c-exp.y (classify_name): Check is_a_member_of_this before returning
290 UNKNOWN_CPP_NAME.
291
1aee7009
JB
2922010-09-13 Joel Brobecker <brobecker@adacore.com>
293
294 * NEWS: Add x86-lynxos to the list of platforms supported by
295 gdbserver.
296
5ec6ebf9
JB
2972010-09-13 Joel Brobecker <brobecker@adacore.com>
298
299 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
300
1863c96c
TT
3012010-09-13 Tom Tromey <tromey@redhat.com>
302
303 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
304
0c5acf93
L
3052010-09-13 H.J. Lu <hongjiu.lu@intel.com>
306
307 * i386-tdep.c (i386_ymm_type): Set type name to
308 builtin_type_vec256i.
309
1c6272a6
MS
3102010-09-12 Michael Snyder <msnyder@vmware.com>
311
312 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
313
e866c497
L
3142010-09-12 H.J. Lu <hongjiu.lu@intel.com>
315
316 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
317
9191d390
L
3182010-09-11 H.J. Lu <hongjiu.lu@intel.com>
319
320 * amd64-tdep.c (amd64_register_name): Removed.
321 (amd64_init_abi): Don't call set_gdbarch_register_name.
322
323 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
324
325 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
326
8d4d924b
JK
3272010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
328 Paul Bolle <pebolle@tiscali.nl>
329
330 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
331 * cli-logging.c (struct saved_output_files) <targerr>: New.
332 (set_logging_redirect, pop_output_files, handle_redirections):
333 Redirect also gdb_stdtargerr.
334 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
335 declarations.
336 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
337 also gdb_stdtargerr.
338 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
339 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
340 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
341 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
342 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
343 New functions.
344
3329c4b5
PM
3452010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
346
347 * hppa-tdep.c (unwind_command): Use host_address_to_string function
348 to display a host address.
349 * monitor.c (monitor_read_memory): Likewise.
350 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
351
5e8db398
PM
3522010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
353
354 * coffread.c (struct coff_symbol): Change c_value type from `long' to
355 `CORE_ADDRESS' as it might contain target addresses.
356
37049e31
PM
3572010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
358
359 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
360 before cast to pointer to avoid warning.
361
351a3e56
KB
3622010-09-09 Kevin Buettner <kevinb@redhat.com>
363
364 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
365 type to be signed.
349126ea 366
6afafb54
UW
3672010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
368
369 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
370 anonymous class partial DIEs.
371
60430eff
DJ
3722010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
373
374 * dwarf2read.c (dwarf2_compute_name): Check that the first
375 argument is a pointer.
376
f1078f66
DJ
3772010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
378
379 * dwarf2read.c (read_func_scope, read_structure_type)
380 (read_common_block): Check for a NULL return from new_symbol.
381
82430852
JK
3822010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
383
384 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
385
c767944b
DJ
3862010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
387
388 * dwarf2read.c (read_structure_type): Move processing of
389 fields and member functions from here...
390 (process_structure_scope): ... to here.
391
561d3825
DJ
3922010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
393
394 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
395 the domain type.
396 (gnuv3_make_method_ptr): Likewise.
397
9bd89d67
TT
3982010-09-08 Tom Tromey <tromey@redhat.com>
399
400 * breakpoint.c (create_breakpoint): Add missing _().
401
1d040b0d
DE
4022010-09-08 Doug Evans <dje@google.com>
403
404 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
405
774b6a14
TT
4062010-09-08 Tom Tromey <tromey@redhat.com>
407
408 Revert:
409 2010-09-01 Tom Tromey <tromey@redhat.com>
410 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
411 symtab.h: Revert earlier change.
412
fc956729
SW
4132010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
414
415 * psymtab.c (add_psymbol_to_bcache): Initialize
416 obj_section.
417 memset psymbol.ginfo.value to 0.
418
48f9886d
PA
4192010-09-06 Pedro Alves <pedro@codesourcery.com>
420
421 * infrun.c (resume): Extend comment on ignoring single-step
422 requests on vfork parents waiting for a vfork-done.
423
423ec54c
JK
4242010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
425 Pedro Alves <pedro@codesourcery.com>
426
427 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
428 is NULL.
429 * fork-child.c (startup_inferior) <resume_signal>: Use enum
430 target_signal type.
431 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
432 calling strsignal. Use enum target_signal type for saved_signo.
433 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
434 (linux_nat_wait_1): Use enum target_signal type for signo. Use
435 target_signal_to_host before calling strsignal.
436 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
437 TARGET_SIGNAL_0.
438
a6eb9bc8
JK
4392010-09-06 Pedro Alves <pedro@codesourcery.com>
440 Jan Kratochvil <jan.kratochvil@redhat.com>
441
442 * common/signals.c (ANY): Remove.
443 (SET): No longer use ANY.
444
74609e71
YQ
4452010-09-06 Yao Qi <yao@codesourcery.com>
446
447 * infrunc(resume): When inferior is waiting_for_vfork_done,
448 clear step and don't use displaced stepping.
449
8464be76
DJ
4502010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
451
452 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
453 value specially.
454
33d62d64
JK
4552010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
456
457 Code cleanup - split print_stop_reason.
458 * infrun.c (enum inferior_stop_reason): Remove.
459 (print_stop_reason): Remove by splitting into ...
460 (print_exited_reason, print_signal_exited_reason)
461 (print_no_history_reason, print_signal_received_reason)
462 (print_end_stepping_range_reason): ... these new functions. Update
463 the preceding comment.
464 (handle_inferior_event): Change the calls to print_exited_reason,
465 print_signal_exited_reason, print_no_history_reason,
466 print_signal_received_reason, print_end_stepping_range_reason.
467 (handle_step_into_function, handle_step_into_function_backward):
468 Change the calls to print_end_stepping_range_reason.
469
14dba4b4
JK
4702010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
471
472 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
473 * cli-out.c: Include vec.h.
474 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
475 variable stream, initialize it, use it.
476 (cli_redirect): New function comment. Replace the stream and
477 original_stream fields by the new streams field. Remove the
478 original_stream != NULL conditional, assert error on NULL instead.
479 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
480 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
481 original_stream fields by the new streams field.
482 (cli_out_set_stream): Replace the stream field by the new streams
483 field.
484 * cli-out.h: Include vec.h.
485 (ui_filep): New typedef, call DEF_VEC_P for it.
486 (struct cli_ui_out_data): Replace the stream and original_stream
487 fields by the new streams field.
488 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
489 NULL first. Extend the comment.
490 (handle_redirections): Call ui_out_redirect with output.
491 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
492 calls outside of the TRY_CATCH block.
493
b04bc5d4 4942010-09-03 Joel Brobecker <brobecker@adacore.com>
495
496 GDB 7.2 released.
497
080db4e0
JB
4982010-09-02 Joel Brobecker <brobecker@adacore.com>
499
500 Back out the following change:
501 | 2010-06-29 Hui Zhu <teawater@gmail.com>
502 | * record.c (set_record_pic_cmdlist,
503 | show_record_pic_cmdlist): New variables.
504 | (set_record_pic_command,
505 | show_record_pic_command): New functions.
506 | (record_pic_function, record_pic_line, record_pic_enum,
507 | set_record_pic_type, record_pic_hide_nofunction,
508 | record_pic_hide_nosource, record_pic_hide_same): New variables.
509 | (record_pic_fputs): New function.
510 | (function_list, node_list, edge_list): New struct.
511 | (function_list, node_list, edge_list): New variables.
512 | (record_pic_cleanups, record_pic_node,
513 | record_pic_edge, cmd_record_pic): New functions.
514 | (_initialize_record): Add new commands for record pic.
515
0a4f61e3
DJ
5162010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
517
518 * config.in, configure: Regenerated.
519 * configure.ac: Check for waitpid.
520 * ser-pipe.c (pipe_close): Wait for the program to exit.
521
58b61394
JK
5222010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
523
ba720883 524 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
525 (set_logging_overwrite): New function.
526 (logging_redirect): New comment.
527 (logging_no_redirect_file, set_logging_redirect)
528 (pop_output_files) <logging_no_redirect_file>: New.
529 (handle_redirections) <!logging_redirect>: New variable
530 no_redirect_file. Remove file autoclose for tee_file_new. No longer
531 discard cleanup for the close of former OUTPUT. Set
532 LOGGING_NO_REDIRECT_FILE.
533 (handle_redirections) <logging_redirect>: gdb_assert
534 LOGGING_NO_REDIRECT_FILE.
535 (show_logging_command) <logging_redirect handling>: Adjust messages
536 for SAVED_FILENAME not NULL.
537 (_initialize_cli_logging): Install set_logging_overwrite and
538 set_logging_redirect.
539
706774f2
JK
5402010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
541
542 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
543
9a35ccf7
JK
5442010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
545
546 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
547 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
548 add $(GDB_WARN_CFLAGS_NO_FORMAT).
549 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
550
ba9b2ec3
YQ
5512010-09-02 Yao Qi <yao@codesourcery.com>
552
553 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
554 number from a WIFSIGNALED status.
555
faf68db7
TT
5562010-09-01 Tom Tromey <tromey@redhat.com>
557
558 * symtab.h (lookup_type_symbol): Declare.
559 * symtab.c (lookup_symbol_in_language_full): Rename from
560 lookup_symbol_in_language. Add 'for_type' argument.
561 (lookup_symbol_in_language): New function.
562 (lookup_type_symbol): Likewise.
563 (lookup_symbol_aux): Add 'for_type' argument.
564 (match_symbol_aux): New function.
565 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
566 (match_transparent_type): New function.
567 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
568 * symfile.h (struct quick_symbol_functions)
569 <pre_expand_symtabs_matching>: Remove.
570 <expand_one_symtab_matching>: New field.
571 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
572 (pre_expand_symtabs_matching_psymtabs): Remove.
573 (psym_functions): Update.
574 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
575 * dwarf2read.c (dw2_lookup_symbol): Update comment.
576 (dw2_pre_expand_symtabs_matching): Remove.
577 (dw2_expand_one_symtab_matching): New function.
578 (dwarf2_gdb_index_functions): Update.
579
248c9dbc
JB
5802010-09-01 Joel Brobecker <brobecker@adacore.com>
581
582 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
583
f75d858b
MK
5842010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
585
586 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
587 as a feature reported by -list-target-features.
588
0482b03b
JB
5892010-09-01 Joel Brobecker <brobecker@adacore.com>
590
591 * features/Makefile (WHICH): Add rs6000/powerpc-32.
592 (powerpc-32.o, powerpc-32.c): New rules.
593 (clean): Also remove powerpc-32.c.
594 * regformats/rs6000/powerpc-32.dat: Generate.
595
710e1a31
SW
5962010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
597
598 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
599 psymbol_bcache_init.
600 * psymtab.h (psymbol_bcache_init): New function prototype.
601 (psymbol_bcache_free): New function prototype.
602 (psymbol_bcache_get_bcache): New function prototype.
603 * psymtab.c (psymbol_bcache_init): New function.
604 (psymbol_bcache_free): New function.
605 (psymbol_bcache_full): New function.
606 (psymbol_bcache_get_bcache): New function.
607 (add_psymbol_to_bcache): use psymbol_bcache_full.
608 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
609 psymbol_bcache.
610 * symmisc.c (print_symbol_bcache_statistics): Updated.
611 (print_objfile_statistics): Updated.
612 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
613 psymbol_cache.
614 (free_objfile): Use psymbol_bcache_free.
615
64382290
TT
6162010-08-31 Tom Tromey <tromey@redhat.com>
617
618 PR c++/11961:
619 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
620 Don't set TYPE_NAME on the type.
621
8bbed405
MS
6222010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
623
624 * infrun.c (set_exec_direction_func): Error out if target does not
625 support reverse execution.
626
06253dd3
JK
6272010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
628
629 Make linux_get_siginfo_type `type *' unique.
630 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
631 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
632 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
633 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
634 (_initialize_linux_tdep): New.
635
b8edc417
JK
6362010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
637
638 Code cleanup.
639 * defs.h (find_memory_region_ftype): New typedef.
640 (exec_set_find_memory_regions): Use it.
641 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
642 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
643 * gcore.c (objfile_find_memory_regions): Likewise.
644 * gnu-nat.c (gnu_find_memory_regions): Likewise.
645 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
646 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
647 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
648 find_memory_region_ftype.
649 (insert_dbx_link_bpt_in_region): Likewise.
650 (iterate_over_mappings): Likewise. Drop the comment part about the
651 function prototype.
652 (find_memory_regions_callback): Use find_memory_region_ftype.
653 (proc_find_memory_regions): Likewise.
654 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
655 find_memory_region_ftype.
656 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
657 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
658
cbd70537
SW
6592010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
660
661 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
662 'static partial_symbol psymbol'.
663 (psymbol_hash): New function.
664 (psymbol_compare): New function.
665 * bcache.c (hash_continue): New.
666 (hash): Use hash_continue.
667 * bcache.c: Add hash_function and compare_function
668 pointers to bcache struct.
669 (bcache_full): Use bcache->hash_function, and
670 bcache->compare_function.
671 (bcache_compare): New function.
672 (bcache_xmalloc): Take hash_function and
673 compare_function arguments and initialize the
674 bcach's pointers.
675 Updated comment.
676 * objfiles.c (allocate_objfile): Updated.
677 * symfile.c (reread_symbols): Updated.
678 * python/py-type.c (typy_richcompare): Updated.
679
03f17ccf
TT
6802010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
681 Tom Tromey <tromey@redhat.com>
682
683 PR python/11792:
684 * python/py-value.c (valpy_get_dynamic_type): New function.
685 (value_object_getset): Add "dynamic_type".
686 (valpy_get_type): Fail on error.
687
25b41d01
YQ
6882010-08-30 Yao Qi <yao@codesourcery.com>
689
690 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
691 (arm_linux_syscall_next_pc): New.
692 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
693 (arm_linux_init_abi): Initialize syscall_next_pc.
694 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
695 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
696 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
697 Declare arm_frame_is_thumb.
698
5760d0ab
JK
6992010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
700
701 Code cleanup.
702 * breakpoint.c (bpstat_alloc): Remove unused prototype.
703 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
704 code.
705 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
706 calls of bpstat_alloc. Remove explicit bs chain termination.
707
46a96992
JK
7082010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
709
710 Code cleanup.
711 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
712 (my_waitpid): Likewise.
713
36374493
DE
7142010-08-27 Doug Evans <dje@google.com>
715
716 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
717 as appropriate.
718
8b93c54c
TT
7192010-08-27 Tom Tromey <tromey@redhat.com>
720
721 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
722 TYPE_FIELD_IGNORE_BITS.
723
16be1145
DE
7242010-08-27 Doug Evans <dje@google.com>
725
726 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
727 the order they're defined in. munmap .debug_types buffer.
728
e254ef6a
DE
7292010-08-26 Doug Evans <dje@google.com>
730
731 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
732 (dw2_forget_cached_source_info): Rename local cu to per_cu.
733 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
734 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
735 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
736 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
737 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
738 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
739 (write_psymtabs_to_index): Ditto.
740
ae53ffa4
PA
7412010-08-26 Pedro Alves <pedro@codesourcery.com>
742
743 * NEWS: Mention libthread_db debugging with core files.
744
c6da4cef
DE
7452010-08-26 Doug Evans <dje@google.com>
746
747 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
748 forward decl. Pass pst->dirname to dwarf_decode_lines.
749 (psymtab_include_file_name): New function.
750 (dwarf_decode_lines): Call it. Update comments.
751
cd02d79d
PA
7522010-08-25 Pedro Alves <pedro@codesourcery.com>
753
754 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
755 compilation unit being different from target die's.
756
673bfd45
DE
7572010-08-24 Doug Evans <dje@google.com>
758
759 PR symtab/11942
760 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
761 debug_types_type_hash.
762 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
763 All uses updated.
764 (lookup_die_type): Renamed from tag_type_to_tag. First look in
765 appropriate type_hash table. All callers updated.
766 (allocate_signatured_type_table): Renamed from
767 allocate_signatured_type_hash_table. All callers updated.
768 (create_signatured_type_table_from_index): Renamed from
769 create_signatured_type_hash_from_index. All callers updated.
770 (read_die_type): Add comment. Move actual reading to ...
771 (read_die_type_1): ... here. New function.
772 (follow_die_ref_or_sig): Tweak comment.
773 (set_die_type): Rewrite to use appropriate choice of
774 debug_info_type_hash or debug_types_type_hash.
775 (get_die_type_at_offset): New function.
776 (get_die_type): Call it.
777
e8fd65ef
JK
7782010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
779
780 * python/py-type.c (typy_richcompare): Initialize worklist.
781
9779414d
DJ
7822010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
783 Kazu Hirata <kazu@codesourcery.com>
784 Jonathan Larmour <jifl@eCosCentric.com>
785
786 * arm-tdep.c: Include features/arm-with-m.c.
787 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
788 call this function.
789 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
790 Check is_m after force-mode.
791 (arm_gdbarch_init): Check the binary before the target description.
792 Add check for M profile attribute. If we have an M-profile device,
793 but no target register description, use arm-with-m. Recognize the
794 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
795 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
796 * arm-tdep.h (XPSR_T): Define.
797 (struct gdbarch_tdep): Add is_m member.
798 * features/arm-m-profile.xml, features/arm-with-m.c,
799 features/arm-with-m.xml: New files.
800
9dc481d3
DE
8012010-08-23 Doug Evans <dje@google.com>
802
803 * dwarf2read.c (read_structure_type): Add comment.
804 (read_enumeration_type): Add comment.
805 (process_enumeration_scope): Move definition of some locals
806 closer to their use.
807 (read_namespace_type): Add comment.
e71ec853 808 (set_die_type): Fix typo in comment.
9dc481d3 809
f9ffd4bb
TT
8102010-08-23 Tom Tromey <tromey@redhat.com>
811
812 PR python/11145:
813 * python/py-value.c: Include expression.h.
814 (valpy_do_cast): New function.
815 (valpy_cast): Use it.
816 (valpy_dynamic_cast): New function.
817 (valpy_reinterpret_cast): Likewise.
818 (value_object_methods): Add dynamic_cast, reinterpret_cast.
819
96f73ba5
TT
8202010-08-23 Tom Tromey <tromey@redhat.com>
821
822 PR python/11391:
823 * python/py-value.c (valpy_nonzero): Don't throw error for other
824 Value types.
825
d839c8a4
TT
8262010-08-23 Tom Tromey <tromey@redhat.com>
827
828 PR python/10676:
829 * python/py-type.c: Include bcache.h, vec.h.
830 (struct type_equality_entry): New.
831 (compare_strings): New function.
832 (check_types_equal): Likewise.
833 (check_types_worklist): Likewise.
834 (typy_richcompare): Likewise.
835 (type_object_type): Set tp_richcompare field.
836
05d0e1e7
TT
8372010-08-23 Tom Tromey <tromey@redhat.com>
838
839 PR python/10953:
840 * python/py-type.c (typy_fields): Call check_typedef.
841 (typy_template_argument): Add TRY_CATCH.
842
702c2711
TT
8432010-08-23 Tom Tromey <tromey@redhat.com>
844
845 PR python/11915:
846 * python/py-type.c (typy_array): New function.
847 (type_object_methods): Add "array".
848
4a532131
PA
8492010-08-20 Pedro Alves <pedro@codesourcery.com>
850
851 * python/python.c: Include "serial.h".
852 (gdbpy_event_fds): Change type to `struct serial *' a array from
853 int array.
854 (gdbpy_run_events): Change parameters. Use serial_readchar in
855 place of read.
856 (gdbpy_post_event): Use serial_write in place of write.
857 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
858 serial_async in place of add_file_handler.
859
58f07bae
PA
8602010-08-20 Pedro Alves <pedro@codesourcery.com>
861
862 * serial.h (gdb_pipe, serial_pipe): Declare.
863 * serial.c (serial_interface_lookup): Take a const char pointer.
864 (serial_fdopen): Rename to ...
865 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
866 Call the OPS' fdopen function if there is one.
867 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
868 (serial_pipe): New.
869 (struct serial_ops) <fdopen>: New field.
870
871 * ser-mingw.c (free_pipe_state):
872 (free_pipe_state): Close output on non-pex pipes.
873 (pipe_windows_fdopen): New.
874 (gdb_pipe): New.
875 (_initialize_ser_windows): Register pipe_windows_fdopen.
876 * ser-go32.c (gdb_pipe): New.
877 * ser-pipe.c (pipe_close): Close file descriptor even if there's
878 no state pointer.
879 (pipe_ops): Delete.
880 (gdb_pipe): New.
881
3da10d80
KS
8822010-08-20 Keith Seitz <keiths@redhat.com>
883
884 PR symtab/11465:
889bf7c5 885 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
886 (struct dwarf2_cu): Add vector method_list.
887 (scan_partial_symbols): Count methods for union, class, structure,
888 and interface types.
889 (add_to_method_list): New function.
890 (free_delayed_list): New function.
891 (compute_delayed_physnames): New function.
892 (process_full_comp_unit): Make a cleanup for the CU's delayed
893 physname list, compute the delayed physnames, and free the
894 the list.
895 (dwarf2_add_member_fn): For C++ and Java, delay the computation
896 of the physname until after the CU is read.
897
898 * dwarf2read.c (read_structure_type): Check if the current
899 DIE's type was already completed after dwarf2_full_name
900 was called.
889bf7c5 901
ca11e899
SS
9022010-08-19 Stan Shebs <stan@codesourcery.com>
903
904 * NEWS: Mention some additional changes.
905
4d2dc20a
TT
9062010-08-19 Tom Tromey <tromey@redhat.com>
907
908 * Makefile.in (install-python): Add DESTDIR.
909
d30f5e1f
DE
9102010-08-19 Doug Evans <dje@google.com>
911
912 PR exp/11926
913 * parser-defs.h (parse_float, parse_c_float): Declare.
914 * parse.c (parse_float, parse_c_float): New function.
915 * c-exp.y (parse_number): Call parse_c_float.
916 * objc-exp.y (parse_number): Ditto.
917 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
918 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
919
2837d59e
JB
9202010-08-19 Joel Brobecker <brobecker@adacore.com>
921
922 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
923 the arguments in the correct order.
924 * symtab.c (maybe_add_partial_symtab_filename): Declare
925 the arguments in the correct order.
926
35633fef
JK
9272010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
928
929 * varobj.c (varobj_create): Replace variable old_fi with old_id,
930 initialize it by null_frame_id, wrap its usage by get_frame_id,
931 frame_id_p and frame_find_by_id.
932
94f7449c
TT
9332010-08-18 Tom Tromey <tromey@redhat.com>
934
935 PR python/11900:
936 * configure: Rebuild.
937 * configure.ac: Add install-python to CONFIG_INSTALL.
938 * Makefile.in (install-python): New.
939
f3574227
DE
9402010-08-18 Doug Evans <dje@google.com>
941
942 * gdb_assert.h (gdb_assert_not_reached): New macro.
943 (gdb_assert_fail): Fix typo in comment.
944 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
945 gdb_assert (0).
946 * darwin-nat.c (darwin_check_new_threads): Ditto.
947 * dwarf2read.c (dwarf2_get_section_info): Ditto.
948 (munmap_section_buffer): Ditto.
949 * m32c-tdep.c (make_types): Ditto.
950 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
951 * macroexp.c (get_character_constant): Ditto.
952 (get_string_literal): Ditto.
953 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
954 (mep_pseudo_cr_index, mep_register_type): Ditto.
955 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
956 (mep_get_insn, mep_analyze_prologue): Ditto.
957 * objfiles.c (qsort_cmp): Ditto.
958 * prologue-value.c (pv_is_identical): Ditto.
959 * record.c (record_get_loc): Ditto.
960 * value.c (value_static_field): Ditto.
961 * xtensa-tdep.c (call0_track_op): Ditto.
962
c92817ce
TT
9632010-08-18 Tom Tromey <tromey@redhat.com>
964
965 PR symtab/11919:
966 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
967 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
968 name-copying lower. Document exception behavior.
969 * completer.c (expression_completer): Catch exceptions from
970 parse_field_expression.
971
856d6f99
PA
9722010-08-18 Pedro Alves <pedro@codesourcery.com>
973
974 PR corefile/8210
975
976 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
977 workaround on core files.
978 (try_thread_db_load_1): Don't try enabling thread event reporting
979 on core files.
980 (thread_db_load): Allow thread_db on core files.
981 (attach_thread): Don't check thread signals on core files, nor try
982 really attaching to the thread, nor enabling thread event event
983 reporting.
984 (thread_db_detach): Don't try disabing thread event reporting or
985 removing thread event breakpoints when debugging a core file.
986 (find_new_threads_callback): Don't try enabling thread event
987 reporting on core files.
988 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
989 debugging a core file.
990 (thread_db_find_new_threads): Don't update thread
991 cores (processors) when debugging a core (dump).
992
261b8d08
PA
9932010-08-18 Pedro Alves <pedro@codesourcery.com>
994
995 PR corefile/8210
996
997 * corelow.c (add_to_thread_list): Don't use
998 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
999 (get_core_register_section): Don't use
1000 gdbarch_core_reg_section_encodes_pid.
1001
1002 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1003 * gdbarch.h, gdbarch.c: Regenerate.
1004 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1005 gdbarch_core_reg_section_encodes_pid.
1006 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1007 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1008 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1009
f9b42018
YQ
10102010-08-18 Yao Qi <yao@codesourcery.com>
1011
1012 * MAINTAINERS : Add myself under Write After Approval.
1013
def98928
TT
10142010-08-17 Tom Tromey <tromey@redhat.com>
1015
1016 * NEWS: Mention template parameter support.
1017
0807b50c
PA
10182010-08-17 Pedro Alves <pedro@codesourcery.com>
1019
1020 PR breakpoints/11371
1021
1022 * breakpoint.c (decref_bp_location): Assert the reference count is
1023 sane.
1024
f431efe5
PA
10252010-08-17 Pedro Alves <pedro@codesourcery.com>
1026
1027 PR breakpoints/11371
1028
1029 * breakpoint.c (breakpoint_init_inferior): Decrement the
1030 location's reference count instead of deleting right away.
1031 (bpstat_free): Decrement the location's reference count. Make
1032 static.
1033 (bpstat_copy): Increment the location's reference count.
1034 (bpstat_find_breakpoint): Adjust.
1035 (bpstat_num): Adjust.
1036 (print_it_typical): Adjust. Use the breakpoint pointer in the
1037 bpstat instead of the location's owner.
1038 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1039 Adjust to record the location's owner in the bpstat.
1040 (watchpoint_check): Use the breakpoint pointer in the bpstat
1041 instead of the location's owner.
1042 (bpstat_check_breakpoint_conditions): Don't handle
1043 bp_watchpoint_scope here. Use the breakpoint pointer in the
1044 bpstat instead of the location's owner.
1045 (bpstat_stop_status): Defer inferior function calls to after
1046 building the bpstat list. Handle bp_watchpoint_scope here. Use
1047 the breakpoint pointer in the bpstat instead of the location's
1048 owner.
1049 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1050 the location's owner.
1051 (free_bp_location): Don't walk bpstats clearing locations.
1052 (incref_bp_location): New.
1053 (decref_bp_location): New.
1054 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
1055 instead of the location's owner.
1056 (update_global_location_list): Clear the location's owner, and
1057 decrement the location's reference count instead of deleting it
1058 right away.
1059 (breakpoint_retire_moribund): Decrement the location's reference
1060 count instead of deleting it right away.
1061 (bpstat_remove_bp_location): Delete.
1062 (bpstat_remove_breakpoint): New.
1063 (bpstat_remove_bp_location_callback): Delete.
1064 (bpstat_remove_breakpoint_callback): New.
1065 (delete_breakpoint): Iterate over all threads' stop_bpstat's
1066 clearing references to the breakpoint that is being deleted.
1067
1068 * breakpoint.h (struct bp_location) <refc>: New field.
1069 <owner>: Update comments.
1070 (bpstat_free): Delete declaration.
1071 (struct bpstats): Change the type of the breakpoint_at field to
1072 struct breakpoint point, from struct bp_location pointer. Add new
1073 field bp_location_at.
1074
14c0d4e1
TT
10752010-08-16 Tom Tromey <tromey@redhat.com>
1076
1077 * NEWS: Fix typo.
1078
b56df873
TT
10792010-08-16 Tom Tromey <tromey@redhat.com>
1080
1081 * NEWS: Mention watch -location.
1082
d63d0675
JK
10832010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1084
1085 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
1086 EXP_STRING_REPARSE to EXP_STRING.
1087 (watch_command_1): Set also EXP_STRING_REPARSE.
1088 (delete_breakpoint): Free also EXP_STRING_REPARSE.
1089 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
1090 Update comment for exp_string.
1091
06a64a0b
TT
10922010-08-16 Tom Tromey <tromey@redhat.com>
1093
1094 * value.c (release_value): Clear 'next' pointer.
1095 * breakpoint.c (watch_command_1): Add 'just_location' argument.
1096 (watch_command_wrapper): Update.
1097 (watch_maybe_just_location): New function.
1098 (watch_command): Update.
1099 (rwatch_command_wrapper): Update.
1100 (rwatch_command): Update.
1101 (awatch_command_wrapper): Update.
1102 (awatch_command): Update.
1103 (check_for_argument): New function.
1104 (_initialize_breakpoint): Update help text.
1105
f96b8fa0
UW
11062010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1107
1108 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
1109 typedef'ed function types correctly.
1110
4eb54052
TT
11112010-08-13 Tom Tromey <tromey@redhat.com>
1112
1113 * python/python-internal.h (gdbpy_get_hook_function): Don't
1114 declare.
1115
44be957e
JK
11162010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1117
ba720883 1118 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
1119 static.
1120
76d8b686
KW
11212010-08-13 Ken Werner <ken.werner@de.ibm.com>
1122
1123 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
1124 the format strings to be compatible with Python 2.4.
1125
8dedea02
VP
11262010-08-13 Vladimir Prus <vladimir@codesourcery.com>
1127
1128 Easier and more stubborn MI memory read commands.
1129
1130 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
1131 and data-write-memory-bytes.
1132 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
1133 (mi_cmd_data_write_memory_bytes): New.
1134 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
1135 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
1136 New.
1137 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
1138 * target.c (target_read_until_error): Remove.
1139 (read_whatever_is_readable, free_memory_read_result_vector)
1140 (read_memory_robust): New.
1141 * target.h (target_read_until_error): Remove.
1142 (struct memory_read_result, free_memory_read_result_vector)
1143 (read_memory_robust): New.
1144
1d9ec526
HZ
11452010-08-13 Hui Zhu <teawater@gmail.com>
1146
1147 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
1148 (read_comp_unit): Initialize back_to.
1149
98bfdba5
PA
11502010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
1151 Pedro Alves <pedro@codesourcery.com>
1152
1153 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
1154 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
1155 (struct partial_die_info) <has_template_arguments>: New field.
1156 <num_attrs>: Change type to unsigned char.
1157 <building_fullname>: New field.
1158 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
1159 allocate a CU if we don't have one already. Add a cleanup for the
1160 CU.
1161 (partial_die_full_name): Handle template arguments not in
1162 DW_AT_name.
1163 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
1164 (load_full_comp_unit): Only allocate a CU if we don't have one
1165 already.
1166 (do_ui_file_peek_last): New.
1167 (dwarf2_compute_name): Handle template parameters not in
1168 DW_AT_name.
1169 (read_comp_unit): Read and free abbrevs if not read yet.
1170 (load_partial_dies): Handle template arguments not in DW_AT_name.
1171 (find_partial_die): If we have a CU, but no a partial dies yet,
1172 also read in the CU.
1173 (dwarf2_const_value_attr): New, abstracted out from
1174 dwarf2_const_value.
1175 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
1176 dwarf2_const_value_attr.
1177 (determine_prefix): Detect and break loops created by RCVT's debug
1178 info.
1179 (maybe_queue_comp_unit): Bail out early if reading partial
1180 symbols.
1181 (follow_die_offset): Load full CU if we have no dies.
1182 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
1183 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
1184
ca5c20b6 11852010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 1186 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
1187
1188 * python/python.c (gdbpy_run_events): New function.
1189 (gdbpy_post_event): Likewise.
1190 (gdbpy_initialize_events): Likewise.
1191 (_initialize_python): Call gdbpy_initialize_events.
1192
7346b668
KW
11932010-08-11 Ken Werner <ken.werner@de.ibm.com>
1194
1195 * gdb/valarith.c (vector_binop): New function.
1196 (scalar_binop): Likewise.
1197 (value_binop): Call scalar_binop or vector_binop depending on the types.
1198 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
1199 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
1200 to pointers.
1201 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
1202
62183e15
TT
12032010-08-11 Brad Roberts <braddr@puremagic.com>
1204
1205 * d-lang.c (extract_identifiers): Handle multiple digits.
1206
39d7b0e2
JK
12072010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1208
1209 Code cleanup.
1210 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
1211 Rename to dummy_frame_unwind.
1212 (dummy_frame_unwind): Remove.
1213 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
1214 * frame-unwind.c (frame_unwind_init): Use address of
1215 dummy_frame_unwind and inline_frame_unwind.
1216 * frame.c (create_sentinel_frame): Use address of
1217 sentinel_frame_unwind.
1218 * inline-frame.c (inline_frame_unwinder): Rename to
1219 inline_frame_unwind.
1220 (inline_frame_unwind): Remove.
1221 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
1222 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
1223 sentinel_frame_unwind.
1224 (sentinel_frame_unwind): Remove.
1225 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
1226 struct.
1227
9f9a8002
JK
12282010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1229
1230 Code cleanup.
1231 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
1232 and returned value. New comment from frame-unwind.h.
1233 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
1234 Extend the comment.
1235 * frame.c (get_frame_id, frame_unwind_register_value)
1236 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
1237 (get_frame_type, frame_unwind_arch): Do not use the return value of
1238 frame_unwind_find_by_frame.
1239
cb2e07a6 12402010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 1241 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
1242 Tom Tromey <tromey@redhat.com>
1243
1244 * python/python.c (gdbpy_solib_address): New function.
1245 (gdbpy_decode_line): Likewise.
1246
c29c521f
TT
12472010-08-10 Tom Tromey <tromey@redhat.com>
1248
1249 Revert gdb-add-index addition:
1250 * Makefile.in (install-only): Don't install gdb-add-index.
1251 * gdb-add-index.sh: Remove.
1252
0c012db1
KB
12532010-08-09 Kevin Buettner <kevinb@redhat.com>
1254
1255 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
1256 `target_has_execution' check with `to_has_memory' check.
1257 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
1258 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
1259 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
1260
db04efe6
KB
12612010-08-09 Kevin Buettner <kevinb@redhat.com>
1262
1263 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
1264 (resume_siggnal, resume_step): Move these static globals...
1265 (struct sim_inferior_data): ...into this new struct.
1266 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
1267 New static globals.
1268 (gdb_callback, callbacks_initialized): Move these globals to
1269 a point earlier in the file.
1270 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
1271 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
1272 (gdbsim_close_inferior, gdbsim_resume_inferior)
1273 (gdbsim_stop_inferior): New functions.
1274 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
1275 New constants.
1276 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
1277 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
1278 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
1279 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
1280 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
1281 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
1282 new local variable `sim_data' in each of these functions. Use
1283 `sim_data' to reference former globals `program_loaded',
1284 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
1285 `resume_step'.
1286 (gdbsim_open): Remove local variable `argv'. Put results of call
1287 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
1288 make a cleanup for it. Free it though when a sim instance cannot
1289 be obtained.
1290 (gdbsim_close): Free sim_argv and null it out as appropriate.
1291 Close sim instances in all inferiors.
1292 (gdbsim_cntrl_c): Stop all inferiors.
1293 (gdbsim_wait):
1294 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
1295
e37fd15a
SW
12962010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1297
1298 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
1299 function after symbol construction is complete.
1300 Do the same for template symbol addition to template_symbols list.
1301
45c58896
SW
13022010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1303
1304 * symtab.c (symbol_get_demangled_name): Remove assertion and
1305 return NULL when language_specific.cplus_specific is not initialized.
1306 * stabsread.c (define_symbol): Set the name before calling
1307 cp_scan_for_anonymous_namespaces.
1308
33e5013e
SW
13092010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1310
1311 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
1312 SYMBOL_SET_LANGUAGE.
1313 (symbol_init_language_specific): Renamed to symbol_set_language.
1314 * symtab.c (symbol_init_language_specific): Removed redundant check
1315 for language_cplus.
1316 Renamed to symbol_set_language.
1317 * stabsread.c (define_symbol): Updated.
1318 (read_enum_type): Updated
1319 * psymtab.c (add_psymbol_to_bcache): Updated.
1320 * minsyms.c (install_minimal_symbols): Updated.
1321 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
1322 SYMBOL_LANGUAGE to set the language.
1323 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
1324 * mdebugread.c (new_symbol): Ditto.
1325 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
1326 * dwarf2read.c (new_symbol_full): Ditto.
1327 * jv-lang.c (add_class_symbol): Ditto.
1328
5da1313b
JK
13292010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1330
1331 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
1332 (make_cleanup_restore_page_info)
1333 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
1334 * gdbcmd.h (execute_command_to_string): New declaration.
1335 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
1336 (make_cleanup_restore_ui_file): Move to utils.c
1337 (execute_gdb_command) <to_string>: Move ...
1338 * top.c (execute_command_to_string): ... here. Call
1339 set_batch_flag_and_make_cleanup_restore_page_info.
1340 * utils.c (make_cleanup_restore_integer): New source file blank line.
1341 (make_cleanup_restore_uinteger): New.
1342 (struct restore_ui_file_closure, do_restore_ui_file)
1343 (make_cleanup_restore_ui_file): Move here from python/python.c.
1344 (init_page_info) <batch_flag>
1345 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
1346 (set_batch_flag_and_make_cleanup_restore_page_info): New.
1347
c820c52a
PA
13482010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
1349
1350 * thread.c (add_thread_silent): Use null_ptid instead of
1351 minus_one_ptid while getting rid of stale inferior_ptid.
1352
8da614df
CV
13532010-08-06 Corinna Vinschen <vinschen@redhat.com>
1354
1355 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
1356 Throughout, call read_encoded_value with ptr_size rather than addr_size.
1357 (decode_frame_entry_1): Remove redundant setting of
1358 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
1359 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
1360 on examined frame section. Add comment to explain why.
1361 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
1362 comment to explain usage.
1363 * gdbarch.c: Regenerate.
1364 * gdbarch.h: Regenerate.
1365
1366 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
1367
e4195b40
JK
13682010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1369
1370 Code cleanup.
1371 * varobj.c (varobj_create): Move variables fi, old_fi and block to
1372 a more inner block.
1373
a3217aa0
PA
13742010-08-05 Pedro Alves <pedro@codesourcery.com>
1375
1376 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
1377 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1378 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
1379 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
1380 linux-tdep.o to gdb_target_obs.
1381
e2b4a699 13822010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
1383
1384 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 1385 argument.
889bf7c5 1386
50e8a0d5
HZ
13872010-08-05 Hui Zhu <teawater@gmail.com>
1388
1389 * mips-linux-tdep.c(regset.h): New include.
1390 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
1391 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
1392 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
1393 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
1394 mips_linux_regset_from_core_section): New functions.
1395 (fetch_core_registers, regset_core_fns): Deleted.
1396 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
1397 Deleted regset_core_fns.
1398 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
1399 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
1400 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
1401 and fpregset64.
1402
70728992
PA
14032010-08-04 Pedro Alves <pedro@codesourcery.com>
1404
1405 * s390-tdep.c: Include linux-tdep.h.
1406 (s390_gdbarch_init): Call linux_init_abi.
1407
a5ee0f0c
PA
14082010-08-04 Pedro Alves <pedro@codesourcery.com>
1409
1410 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
1411 instead of printing "Thread" here.
1412 * linux-tdep.c: Include inferior.h.
1413 (linux_core_pid_to_str): New.
1414 (linux_init_abi): New.
1415 * linux-tdep.h (linux_init_abi): Declare.
1416 * alpha-linux-tdep.c: Include linux-tdep.h.
1417 (alpha_linux_init_abi): Call linux_init_abi.
1418 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
1419 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
1420 * frv-linux-tdep.c: Include linux-tdep.h
1421 (frv_linux_init_abi): Call linux_init_abi.
1422 * hppa-linux-tdep.c: Include linux-tdep.h
1423 (hppa_linux_init_abi): Call linux_init_abi.
1424 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
1425 * ia64-linux-tdep.c: Include linux-tdep.h.
1426 (ia64_linux_init_abi): Call linux_init_abi.
1427 * m32r-linux-tdep.c: Include linux-tdep.h.
1428 (m32r_linux_init_abi): Call linux_init_abi.
1429 * m68klinux-tdep.c: Include linux-tdep.h.
1430 (m68k_linux_init_abi): Call linux_init_abi.
1431 * microblaze-linux-tdep.c: Include linux-tdep.h.
1432 (microblaze_linux_init_abi): Call linux_init_abi.
1433 * mips-linux-tdep.c: Include linux-tdep.h.
1434 (mips_linux_init_abi): Call linux_init_abi.
1435 * mn10300-linux-tdep.c: Include linux-tdep.h.
1436 (am33_linux_init_osabi): Call linux_init_abi. Rename the
1437 'gdbinfo' parameter to 'info'.
1438 * ppc-linux-tdep.c: Include linux-tdep.h.
1439 (ppc_linux_init_abi): Call linux_init_abi.
1440 * sh-linux-tdep.c: Include linux-tdep.h.
1441 (sh_linux_init_abi): Call linux_init_abi.
1442 * sparc-linux-tdep.c: Include linux-tdep.h.
1443 (sparc32_linux_init_abi): Call linux_init_abi.
1444 * sparc64-linux-tdep.c: Include linux-tdep.h.
1445 (sparc64_linux_init_abi): Call linux_init_abi.
1446 * xtensa-linux-tdep.c: Include linux-tdep.h.
1447 (xtensa_linux_init_abi): Call linux_init_abi.
1448 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
1449 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
1450 callback.
1451
bc043ef3
DE
14522010-08-03 Doug Evans <dje@google.com>
1453
1454 * breakpoint.c (bpdisp_text): Constify bpdisps.
1455 * solib-svr4.c (solib_break_names): Constify.
1456 (bkpt_names, main_name_list): Constify.
1457 (match_main): Constify soname arg.
63cdd227
DE
1458 (bfd_lookup_symbol): Remove unnecessary forward decl.
1459 Constify symname arg.
bc043ef3
DE
1460 (enable_break): Constify bkpt_namep.
1461 * symtab.c (search_symbols): Constify types, types2, types3, types4.
1462 (symtab_symbol_info): Constify classnames.
1463
585d1eb8
PM
14642010-08-03 Phil Muldoon <pmuldoon@redhat.com>
1465
1466 * NEWS: Document Python value inferior function calls.
1467
2de00c64
DE
14682010-08-02 Doug Evans <dje@google.com>
1469
1470 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
1471
02d868e8
PP
14722010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1473
1474 * linux-thread-db.c (libthread_db_debug): New variable.
1475 (thread_db_find_new_threads_silently): Control verbosity with it.
1476 (try_thread_db_load_1, try_thread_db_load): Likewise.
1477 (find_new_threads_once): Likewise.
1478 (_initialize_thread_db): Set/show it.
1479
a19cae16
JK
14802010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1481
1482 * common/signals.c (signals): Move the content to signals.def.
1483 Include it. Remove the INDENT comments.
1484
c2bbed2a
TT
14852010-07-30 Tom Tromey <tromey@redhat.com>
1486
1487 * Makefile.in (install-only): Install gdb-add-index.
1488 * gdb-add-index.sh: New file.
1489
f32b2f09
CR
14902010-07-31 Renquan Cheng <crq@gcc.gnu.org>
1491
1492 * MAINTAINERS: Add myself for write after approval privileges.
1493
1276c759
JK
14942010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1495
1496 * symfile.c (addr_section_name): New function.
1497 (addrs_section_compar): Use it.
1498 (addr_info_make_relative): Use it. Move variable sect_name into a more
1499 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
1500
420697bb
TT
15012010-07-30 Tom Tromey <tromey@redhat.com>
1502
1503 * configure: Rebuild.
1504 * configure.ac: Add missing case for Python 2.7.
1505
d0d99561
DD
15062010-07-29 DJ Delorie <dj@redhat.com>
1507
1508 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
1509 conditions.
1510
0b29bdde
PA
15112010-07-29 Pedro Alves <pedro@codesourcery.com>
1512
1513 * PROBLEMS: Remove mention of all problems.
1514
110ed339
PA
15152010-07-28 Pedro Alves <pedro@codesourcery.com>
1516
1517 PR build/11848
1518 * configure.ac: Check for wresize.
1519 * configure, config.in: Regenerate.
1520 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
1521 with HAVE_WRESIZE.
1522
326fd672
TT
15232010-07-28 Tom Tromey <tromey@redhat.com>
1524
1525 PR python/11060:
1526 * python/py-type.c (typy_legacy_template_argument): New function,
1527 extracted from typy_template_argument.
1528 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
1529 value when needed.
1530
4ac8c4da
TT
15312010-07-28 Oleg Nesterov <oleg@redhat.com>
1532
1533 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
1534
053315c2
TT
15352010-07-27 Tom Tromey <tromey@redhat.com>
1536
1537 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
1538
3ce3b1ba
PA
15392010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
1540
1541 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
1542 handling DW_AT_object_pointer, and workaround GCC PR 43053.
1543
2bb4f988
TT
15442010-07-28 Tom Tromey <tromey@redhat.com>
1545
1546 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
1547
74232302
JB
15482010-07-28 Joel Brobecker <brobecker@adacore.com>
1549
1550 * remote.c (remote_download_tracepoint): Add missing gettext markup.
1551 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
1552
385d04dc
JB
15532010-07-28 Joel Brobecker <brobecker@adacore.com>
1554
1555 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
1556 down, just before the block that parse the breakpoint addr_string.
1557
34eaf542
TT
15582010-07-28 Tom Tromey <tromey@redhat.com>
1559
1560 PR c++/9946:
1561 * symfile.c (reread_symbols): Clear template_symbols.
1562 * symtab.h (struct symbol) <is_cplus_template_function>: New
1563 field.
1564 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
1565 (struct template_symbol): New.
1566 * symtab.c (lookup_symbol_aux_local): Use
1567 cp_lookup_symbol_imports_or_template.
1568 * objfiles.h (struct objfile) <template_symbols>: New field.
1569 * objfiles.c (relocate_one_symbol): New function.
1570 (objfile_relocate1): Use it. Relocate isolated symbols.
1571 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
1572 template_arguments>: New fields.
1573 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
1574 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
1575 (TYPE_TEMPLATE_ARGUMENT): Likewise.
1576 (lookup_typename): Update.
1577 * gdbtypes.c (lookup_typename): Constify "block" argument.
1578 * dwarf2read.c: Include vec.h.
1579 (symbolp): New typedef.
1580 (read_func_scope): Read template arguments. Allocate a
1581 template_symbol when needed.
1582 (read_structure_type): Read template arguments.
1583 (new_symbol_full): New function, from new_symbol. Handle
1584 DW_TAG_template_type_param and DW_TAG_template_value_param.
1585 (new_symbol): Rewrite as wrapper.
1586 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
1587 * cp-namespace.c: Include language.h.
1588 (search_symbol_list): New function.
1589 (cp_lookup_symbol_imports_or_template): Likewise.
1590
d27b3be4
PA
15912010-07-28 Balazs Kezes <rlblaster@gmail.com>
1592
1593 * tui/tui-win.c (make_visible_with_new_height): Resize and move
1594 the command window to the new size and position.
1595
0036e657
PA
15962010-07-28 Balazs Kezes <rlblaster@gmail.com>
1597
a782f43e 1598 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
1599 coordinates.
1600
36900355
PA
16012010-07-28 Balazs Kezes <rlblaster@gmail.com>
1602
a782f43e 1603 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 1604 after a detecting a resize.
a782f43e 1605 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
1606 call.
1607
db5e03ae
PA
16082010-07-28 Pedro Alves <pedro@codesourcery.com>
1609
1610 * configure.ac: Check for resize_term.
1611 * configure, config.in: Regenerate.
1612
b71fff68
JB
16132010-07-27 Joel Brobecker <brobecker@adacore.com>
1614
1615 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
1616
9b1c24c8
PA
16172010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1618
1619 * dwarf2read.c (read_string): Rename to ...
1620 (read_direct_string): ... this.
1621 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
1622 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
1623
00390b84
JK
16242010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1625
1626 * linux-nat.c (linux_nat_lp_status_is_event): New function.
1627 (count_events_callback, select_event_lwp_callback)
1628 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
1629
26ab7092
JK
16302010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1631
1632 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
1633 (_initialize_ia64_linux_nat): Install it.
1634 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
1635 (linux_nat_set_status_is_event): New.
1636 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
1637 cancel_breakpoints_callback, linux_nat_filter_event)
1638 (linux_nat_wait_1): Use linux_nat_status_is_event.
1639 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
1640
283e6a52
TT
16412010-07-27 Tom Tromey <tromey@redhat.com>
1642
1643 * NEWS: Mention labels, .gdb_index.
1644
53a71c06
CR
16452010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
1646
1647 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 1648 "start,+length" form of arguments.
53a71c06
CR
1649 * NEWS: Add "Changed commands" (disassemble) section for "Changes
1650 since GDB 7.1"; and merge two separated paragraphs of disassemble
1651 description in "Changes in GDB 7.0".
1652
c63a1f86
JK
16532010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1654
1655 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
1656 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
1657 (fputs_maybe_filtered): Do not do filtering also on
1658 ! INPUT_FROM_TERMINAL_P.
1659
abebb8b0
JB
16602010-07-27 Joel Brobecker <brobecker@adacore.com>
1661
1662 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
1663 in warning message.
1664
5374244e
PM
16652010-07-27 Phil Muldoon <pmuldoon@redhat.com>
1666
1667 * python/py-value.c (valpy_call): New Function.
1668
ac0b195c
KW
16692010-07-27 Ken Werner <ken.werner@de.ibm.com>
1670
889bf7c5 1671 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
1672 types_list_elements variables.
1673
09d8bd00
TT
16742010-07-26 Tom Tromey <tromey@redhat.com>
1675
1676 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
1677 TLS with DW_OP_const4u or DW_OP_const8u.
1678
9fe70b4f
TJB
16792010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
1680
1681 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
1682 VSX registers contents.
1683
caac4577
JG
16842010-07-26 Jerome Guitton <guitton@adacore.com>
1685
1686 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
1687 its adress is null. Add comment to explain why.
1688 (new_symbol): Ditto.
1689
857d11d0
JK
16902010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1691
1692 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
1693 the host signal first.
1694
1fd400ff
TT
16952010-07-23 Tom Tromey <tromey@redhat.com>
1696
1697 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
1698 type_comp_units>: New fields.
1699 (dw2_get_cu): New function.
1700 (create_cus_from_index): Remove unused argument.
1701 (create_signatured_type_hash_from_index): New function.
1702 (create_addrmap_from_index): Update.
1703 (dwarf2_read_index): Handle version 2.
1704 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
1705 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
1706 (dw2_print_stats, dw2_expand_all_symtabs)
1707 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
1708 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
1709 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
1710 (allocate_signatured_type_hash_table): New function.
1711 (add_signatured_type_cu_to_list): Likewise.
1712 (create_debug_types_hash_table): Use them. Set type_comp_units.
1713 (read_signatured_type): Ensure section data is available.
1714 (add_address_entry): Don't record empty ranges.
1715 (struct signatured_type_index_data): New.
1716 (write_one_signatured_type): New function.
1717 (write_psymtabs_to_index): Write type CUs.
1718 (save_gdb_index_command): Update comment.
1719 (process_type_comp_unit): Move inititalization of
1720 from_debug_types...
1721 (create_debug_types_hash_table): ... here.
1722
3a674486
JK
17232010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1724
1725 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
1726 cleanup and generating of gdb script to it.
1727 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
1728 and terminal size. Convert $tmpfile to a series of -ex-es.
1729
54ec275a
KS
17302010-07-23 Keith Seitz <keiths@redhat.com>
1731
1732 * symtab.c (basic_lookup_transparent_type): Call pre-expand
1733 hook for STATIC_BLOCK types, too.
1734
8fd447e6
KS
17352010-07-23 Keith Seitz <keiths@redhat.com>
1736
1737 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
1738 and vector definition.
1739
25b72dde
JK
17402010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1741
1742 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
1743
96d19272
JK
17442010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1745
1746 * dwarf2read.c: Include completer.h.
1747 (save_gdb_index_command): Use matching usage command name.
1748 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
1749 Set filename_completer for it.
1750
ca1f3406
TT
17512010-07-22 Tom Tromey <tromey@redhat.com>
1752
1753 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
1754 type signature's per-CU data.
1755
ba25b921
PA
17562010-07-22 Pedro Alves <pedro@codesourcery.com>
1757
1758 * NEWS: Mention target reported shared libraries support by
1759 default.
1760
23bd0f7c
PA
17612010-07-21 Pedro Alves <pedro@codesourcery.com>
1762
1763 PR symtab/11827
1764
1765 Revert:
1766 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1767 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1768 and DW_TAG_volatile_type.
1769 (new_symbol): Likewise.
1770
883df6dd
SW
17712010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
1772
1773 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
1774 function symbols before overload resolution.
1775
269b11a2
PA
17762010-07-21 Pedro Alves <pedro@codesourcery.com>
1777
1778 * breakpoint.c (bptype_string): New, abstracted out from
1779 print_one_breakpoint_location.
1780 (print_one_breakpoint_location): Adjust.
1781 (breakpoint_1): Adjust the type column width dynamically.
1782
569b05a5
JK
17832010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1784
1785 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1786 a gdb_assert call, new comment.
1787
ad34eb2f
JK
17882010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1789
1790 * linux-nat.c (linux_handle_extended_wait): Handle case when
1791 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
1792
33355866
JK
17932010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1794
1795 Code cleanup.
1796 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
1797 linux_nat_wait_1. Use always LP->STATUS afterwards.
1798
26590820
HZ
17992010-07-20 Hui Zhu <teawater@gmail.com>
1800
1801 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
1802 (inf_ptrace_attach): Ditto.
1803
c0edd9ed
JK
18042010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1805
1806 Make core files the process_stratum.
1807 * corefile.c (core_target): New variable.
1808 (core_file_command): Remove variable t, use core_target.
1809 * corelow.c (core_ops): Make it static.
1810 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
1811 * defs.h (make_cleanup_unpush_target): New prototype.
1812 * gdbarch.h: Regenerate.
1813 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
1814 * gdbcore.h (core_target): New declaration.
1815 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
1816 variables ops_already_pushed and back_to. Use push_target,
1817 make_cleanup_unpush_target and discard_cleanups calls.
1818 * record.c (record_open): Replace core_stratum by a core_bfd check.
1819 * target.c (target_is_pushed): New function.
1820 (find_core_target): Remove.
1821 * target.h (enum strata) <core_stratum>: Remove.
1822 (target_is_pushed): New declaration.
1823 (find_core_target): Remove declaration.
1824 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
1825 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
1826
f02253f1
HZ
18272010-07-19 Hui Zhu <teawater@gmail.com>
1828
1829 * breakpoint.c (single_step_breakpoints_inserted): New
1830 function.
1831 * breakpoint.h (single_step_breakpoints_inserted): Extern.
1832 * infrun.c (maybe_software_singlestep): Add check code.
1833 * record.c (record_resume): Add code for software single step.
1834 (record_wait): Ditto.
1835
78768c4a
JK
18362010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1837
1838 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
1839 a more inner block. Remove its unused declaration initializer.
1840
431e49aa
TJB
18412010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
1842
1843 * NEWS: Mention support for the new ptrace interface and hardware
1844 accelerated watchpoint conditions on powerpc-linux.
1845
bd91e7ae
OS
18462010-07-16 Ozkan Sezer <sezeroz@gmail.com>
1847
1848 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
1849 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
1850 and host_address_to_string() and %s for pointers.
1851 (debug_to_remove_breakpoint): Likewise.
1852 (debug_to_region_ok_for_hw_watchpoint): Likewise.
1853 (debug_to_can_accel_watchpoint_condition): Likewise.
1854 (debug_to_stopped_data_address): Likewise.
1855 (debug_to_watchpoint_addr_within_range): Likewise.
1856 (debug_to_insert_hw_breakpoint): Likewise.
1857 (debug_to_remove_hw_breakpoint): Likewise.
1858 (debug_to_insert_watchpoint): Likewise.
1859 (debug_to_remove_watchpoint): Likewise.
1860
29df156d
SW
18612010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1862
1863 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
1864 argument.
1865 (cplus_specific): New struct.
1866 * symtab.c (symbol_set_demangled_name): Updated.
1867 Use cplus_specific for cplus symbols.
1868 (symbol_get_demangled_name): Retrive the name from the cplus_specific
1869 struct for cplus symbols.
1870 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
1871 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
1872 * symtab.c (symbol_init_cplus_specific): New function.
1873
b250c185
SW
18742010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1875
1876 * symtab.h (symbol_set_demangled_name): New function.
1877 (symbol_get_demangled_name): New function.
1878 * symtab.c (symbol_set_demangled_name): New function.
1879 (symbol_get_demangled_name): New function.
1880 (symbol_init_language_specific): Use demangled_name setter and getter.
1881 (symbol_set_names): Ditto.
1882 (symbol_natural_name): Ditto.
1883 (symbol_demangled_name): Ditto.
1884 * dwarf2read.c (new_symbol): Ditto.
1885
afa16725
SW
18862010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1887
1888 * symtab.h: Renamed cplus_specific to mangled_lang.
1889 * symtab.c (symbol_init_language_specific): Updated.
1890 (symbol_set_names): Updated.
1891 (symbol_natural_name): Updated.
1892 (symbol_demangled_name): Updated.
1893 * ada-lang.c (ada_decode_symbol): Updated.
1894 * dwarf2read.c (new_symbol): Updated.
1895
3cbaedff
KW
18962010-07-14 Ken Werner <ken.werner@de.ibm.com>
1897
1898 * valops.c (value_assign): Do not call to value_coerce_to_target.
1899 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
1900
c932f1be
KW
19012010-07-14 Ken Werner <ken.werner@de.ibm.com>
1902
1903 * MAINTAINERS: Add myself for write after approval privileges.
1904
91158a56
TT
19052010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
1906
1907 * c-valprint.c (c_val_print): Add embedded_offset to address in
1908 call to val_print_array_elements.
1909
b3b272e1
TT
19102010-07-13 Tom Tromey <tromey@redhat.com>
1911
1912 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
1913
bb3fa9d0
TT
19142010-07-13 Tom Tromey <tromey@redhat.com>
1915
1916 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
1917 objfile.
1918
dd786858
TT
19192010-07-13 Tom Tromey <tromey@redhat.com>
1920
1921 * symfile.c (set_initial_language): Update.
1922 (deduce_language_from_filename): Argument type now const.
1923 * symtab.h (find_main_filename): Update.
1924 (deduce_language_from_filename): Update.
1925 * symtab.c (find_main_filename): Make result const.
1926 * dwarf2read.c (dw2_find_symbol_file): Change return type.
1927 * psymtab.c (find_symbol_file_from_partial): Change return type.
1928 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1929 Make result const.
1930
9291a0cd
TT
19312010-07-13 Tom Tromey <tromey@redhat.com>
1932
1933 * breakpoint.c (save_cmdlist): No longer static.
1934 * gdbcmd.h (save_cmdlist): Declare.
1935 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
1936 OBJF_READNOW on objfile if readnow_symbol_files.
1937 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
1938 (elf_sym_fns_gdb_index): New global.
1939 * dwarf2read.c: Include exceptions.h.
1940 (offset_type): New.
1941 (struct mapped_index): New.
1942 (dwarf2_per_cu_data_ptr): New typedef.
1943 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
1944 New fields.
1945 (GDB_INDEX_SECTION): New define.
1946 (struct dwarf2_per_cu_quick_data): New.
1947 (struct dwarf2_per_cu_data) <objfile>: New field.
1948 <psymtab>: Removed.
1949 <v>: New field.
1950 (byte_swap): New function.
1951 (MAYBE_SWAP): New macro.
1952 (INDEX_SUFFIX): New macro.
1953 (dw2_do_instantiate_symtab): New function.
1954 (dw2_instantiate_symtab): Likewise.
1955 (create_cus_from_index): Likewise.
1956 (create_addrmap_from_index): Likewise.
1957 (mapped_index_string_hash): Likewise.
1958 (find_slot_in_mapped_hash): Likewise.
1959 (dwarf2_read_index): Likewise.
1960 (dw2_setup): Likewise.
1961 (dw2_require_line_header): Likewise.
1962 (dw2_require_full_path): Likewise.
1963 (dw2_find_last_source_symtab): Likewise.
1964 (dw2_forget_cached_source_info): Likewise.
1965 (dw2_lookup_symtab): Likewise.
1966 (dw2_lookup_symbol): Likewise.
1967 (dw2_do_expand_symtabs_matching): Likewise.
1968 (dw2_pre_expand_symtabs_matching): Likewise.
1969 (dw2_print_stats): Likewise.
1970 (dw2_dump): Likewise.
1971 (dw2_relocate): Likewise.
1972 (dw2_expand_symtabs_for_function): Likewise.
1973 (dw2_expand_all_symtabs): Likewise.
1974 (dw2_expand_symtabs_with_filename): Likewise.
1975 (dw2_find_symbol_file): Likewise.
1976 (dw2_map_ada_symtabs): Likewise.
1977 (dw2_expand_symtabs_matching): Likewise.
1978 (dw2_find_pc_sect_symtab): Likewise.
1979 (dw2_map_symbol_names): Likewise.
1980 (dw2_map_symbol_filenames): Likewise.
1981 (dw2_has_symbols): Likewise.
1982 (dwarf2_gdb_index_functions): New global.
1983 (dwarf2_initialize_objfile): New function.
1984 (process_psymtab_comp_unit): Update.
1985 (add_partial_subprogram): Likewise.
1986 (dwarf2_psymtab_to_symtab): Likewise.
1987 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
1988 (process_full_comp_unit): Update.
1989 (find_file_and_directory): New function.
1990 (read_file_scope): Use find_file_and_directory.
1991 (dwarf2_per_cu_objfile): Update.
1992 (dwarf2_per_cu_addr_size): Update.
1993 (dwarf2_per_cu_offset_size): Update.
1994 (dwarf2_free_objfile): Free the index, if needed.
1995 (dwarf2_per_objfile_free): Unmap the index, if needed.
1996 (struct strtab_entry): New.
1997 (hash_strtab_entry): New function.
1998 (eq_strtab_entry): Likewise.
1999 (create_strtab): Likewise.
2000 (add_string): Likewise.
2001 (struct symtab_index_entry): New.
2002 (struct mapped_symtab): New.
2003 (hash_symtab_entry): New function.
2004 (eq_symtab_entry): Likewise.
2005 (delete_symtab_entry): Likewise.
2006 (create_index_table): Likewise.
2007 (create_mapped_symtab): Likewise.
2008 (cleanup_mapped_symtab): Likewise.
2009 (find_slot): Likewise.
2010 (hash_expand): Likewise.
2011 (add_index_entry): Likewise.
2012 (add_indices_to_cpool): Likewise.
2013 (write_hash_table): Likewise.
2014 (add_address_entry): Likewise.
2015 (write_psymbols): Likewise.
2016 (write_obstack): Likewise.
2017 (unlink_if_set): Likewise.
2018 (write_psymtabs_to_index): Likewise.
2019 (save_gdb_index_command): Likewise.
2020 (_initialize_dwarf2_read): Install "save gdb-index"
2021 command.
2022 (create_all_comp_units): Initialize 'objfile' field of CU.
2023 (dwarf2_locate_sections): Check for .gdb_index.
2024 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2025 * symfile.h (dwarf2_initialize_objfile): Declare.
2026
58b6ab13
TT
20272010-07-13 Tom Tromey <tromey@redhat.com>
2028
2029 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2030 (basic_lookup_transparent_type): Likewise.
2031 * symfile.h (struct quick_symbol_functions)
2032 <pre_expand_symtabs_matching>: New field.
2033 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2034 (psym_functions): Update.
2035
0f5238ed
TT
20362010-07-13 Tom Tromey <tromey@redhat.com>
2037
2038 PR breakpoints/8357:
2039 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2040 * linespec.c (decode_line_1): Update comment. Call decode_label.
2041 (decode_label): New function.
2042 (symbol_found): Handle LOC_LABEL.
2043 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2044 domain. Call add_symbol_to_list.
2045
9aa1f1e3
TT
20462010-07-13 Tom Tromey <tromey@redhat.com>
2047
2048 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2049 * dwarf2loc.c (find_location_expression): Use
2050 dwarf2_per_cu_text_offset.
2051 (dwarf2_evaluate_loc_desc): Likewise.
2052 (dwarf2_loc_desc_needs_frame): Likewise.
2053 (compile_dwarf_to_ax): Likewise.
2054 (loclist_describe_location): Likewise.
2055 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
2056 (dwarf2_per_cu_objfile): Update comment.
2057
953ac07e
JK
20582010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2059
2060 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
2061 * p-lang.c (pascal_printstr): Likewise.
2062
f04e4012
TT
20632010-07-09 Tom Tromey <tromey@redhat.com>
2064
2065 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
2066 'hint' if it is NULL.
2067
f4dfd9c0
HZ
20682010-07-09 Hui Zhu <teawater@gmail.com>
2069
2070 * source.c (print_source_lines_base): Add check for noprint.
2071
7e6e39e5
JB
20722010-07-08 Joel Brobecker <brobecker@adacore.com>
2073
2074 * python/python-config.py: Resync with Python 2.7 version of this
2075 script.
2076
76b8507d
JB
20772010-07-08 Joel Brobecker <brobecker@adacore.com>
2078
2079 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2080
797054e6
JB
20812010-07-07 Joel Brobecker <brobecker@adacore.com>
2082
2083 * NEWS: Create a new section for the next release branch.
2084 Rename the section of the current branch, now that it has
2085 been cut.
2086
c80befee 20872010-07-07 Joel Brobecker <brobecker@adacore.com>
2088
2089 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
2090 * version.in: Bump version to 7.2.50.20100707-cvs.
2091
ac56253d
TT
20922010-07-07 Tom Tromey <tromey@redhat.com>
2093
2094 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
2095 LOC_COMPUTED symbol.
2096 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
2097 (dwarf2_loc_desc_needs_frame): Likewise.
2098 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
2099 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
2100 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
2101 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
2102 'offset' argument.
2103 (struct dwarf2_frame_cache) <text_offset>: New field.
2104 (dwarf2_frame_cache): Set new field.
2105 (dwarf2_frame_prev_register): Update.
2106 (dwarf2_frame_sniffer): Update.
2107 (dwarf2_frame_base_sniffer): Update.
2108 (dwarf2_frame_find_fde): Add 'out_offset' argument.
2109
0cf6dd15
TJB
21102010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2111 Thiago Jung Bauermann <bauerman@br.ibm.com>
2112
2113 Support for hw accelerated condition watchpoints in booke powerpc.
2114
2115 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
2116 and move to eval.c. Change callers.
2117 (insert_bp_location): Pass watchpoint condition in
2118 target_insert_watchpoint.
2119 (remove_breakpoint_1) Pass watchpoint condition in
2120 target_remove_watchpoint.
2121 (watchpoint_locations_match): Call
2122 target_can_accel_watchpoint_condition.
2123 * eval.c: Include wrapper.h.
2124 (fetch_subexp_value): Moved from breakpoint.c.
2125 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
2126 Formatting fix.
2127 (can_use_watchpoint_cond_accel): New function.
2128 (calculate_dvc): Likewise.
2129 (num_memory_accesses): Likewise.
2130 (check_condition): Likewise.
2131 (ppc_linux_can_accel_watchpoint_condition): Likewise
2132 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
2133 check_condition and calculate_dvc.
2134 (ppc_linux_remove_watchpoint): Likewise.
2135 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
2136 ppc_linux_can_accel_watchpoint_condition
2137 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
2138 condition.
2139 (debug_to_remove_watchpoint): Likewise.
2140 (debug_to_can_accel_watchpoint_condition): New function.
2141 (update_current_target): Set to_can_accel_watchpoint_condition.
2142 (setup_target_debug): Set to_can_accel_watchpoint_condition.
2143 * target.h: Add opaque declaration for struct expression.
2144 (struct target_ops) <to_insert_watchpoint>,
2145 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
2146 <to_can_accel_watchpoint_condition>: New member.
2147 condition. Update all callers and implementations.
2148 (target_can_accel_watchpoint_condition): New macro.
2149 * value.c (free_value_chain): New function.
2150 * value.h (fetch_subexp_value): New prototype.
2151 (free_value_chain): Likewise.
2152
2f2241f1
UW
21532010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
2154
2155 * linux-nat.c (linux_nat_do_thread_registers): Use section size
2156 from gdbarch_core_regset_sections also for .reg if present.
2157
2158 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
2159 section size for .reg.
2160 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2161 (ppc_linux_vmx_regset_sections): Likewise.
2162 (ppc_linux_fp_regset_sections): Likewise.
2163 (ppc64_linux_vsx_regset_sections): New variable.
2164 (ppc64_linux_vmx_regset_sections): Likewise.
2165 (ppc64_linux_fp_regset_sections): Likewise.
2166 (ppc_linux_init_abi): Install core_regset_section lists appropriate
2167 for current word size.
2168
1fd7cdc2
JB
21692010-07-06 Joel Brobecker <brobecker@adacore.com>
2170
2171 * server.c (myresume): Make static.
2172
11763c18
TT
21732010-07-06 Tom Tromey <tromey@redhat.com>
2174
2175 * configure, config.in: Rebuild.
2176 * configure.ac (HAVE_LIBPYTHON2_7): New define.
2177 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
2178
a6cc4789
AS
21792010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2180
2181 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
2182 "clear".
2183
f9e9243a
UW
21842010-07-06 Ken Werner <ken.werner@de.ibm.com>
2185
2186 * gdbtypes.h (floatformats_ieee_half): Add declaration.
2187 * gdbtypes.c (floatformats_ieee_half): New variable.
2188 * doublest.c (floatformat_from_length): Set format to
2189 gdbarch_half_format if length matches.
2190 * gdbarch.sh (half_bit): New architecture method.
2191 (half_format): Likewise.
2192 * gdbarch.h: Regenerate.
2193 * gdbarch.c: Likewise.
2194
4e5799b6
JK
21952010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2196 Joel Brobecker <brobecker@adacore.com>
2197
2198 Fix re-run of PIE executable, PR shlibs/11776.
2199 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
2200 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
2201
86e4bafc
JK
22022010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2203 Joel Brobecker <brobecker@adacore.com>
2204
2205 * auxv.c (memory_xfer_auxv): Update attach comment.
2206 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
2207 svr4_relocate_main_executable.
2208 (svr4_solib_create_inferior_hook): Make the call to
2209 svr4_relocate_main_executable unconditional.
2210
3cd07d20
JK
22112010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2212 Joel Brobecker <brobecker@adacore.com>
2213
2214 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
2215
0a1e94c7
JK
22162010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2217 Joel Brobecker <brobecker@adacore.com>
2218
2219 Fix attaching to PIEs prelinked on the disk after the process was
2220 started.
2221 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
2222 Verify it against bfd_get_arch_size. Try to match arbitrary
2223 displacement for the phdrs comparison.
2224
5387647f
TT
22252010-07-02 Tom Tromey <tromey@redhat.com>
2226
2227 PR exp/11780:
2228 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
2229 value as optimized-out.
2230
38b6c3b3
TJB
22312010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
2232 Thiago Jung Bauermann <bauerman@br.ibm.com>
2233
2234 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
2235 represent?" question in comment. Change comment to a proper sentence.
2236
a17ac5b0
TT
22372010-07-02 Ken Werner <ken.werner@de.ibm.com>
2238
2239 * c-valprint.c (c_val_print): Fix printing of character vectors.
2240
bddaafad
JK
22412010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2242
2243 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
2244 create_breakpoint prototype.
2245
d41c0fc8
PA
22462010-07-01 Pedro Alves <pedro@codesourcery.com>
2247
2248 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
2249 usefulness suggestion of multiple breakpoints at same location.
2250
dc10affe
PA
22512010-07-01 Pedro Alves <pedro@codesourcery.com>
2252
2253 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
2254
cabe9ab6
PA
22552010-07-01 Pedro Alves <pedro@codesourcery.com>
2256
2257 * dwarf2loc.c (locexpr_tracepoint_var_ref)
2258 (loclist_tracepoint_var_ref): Handle optimized out values.
2259
cce7e648
PA
22602010-07-01 Pedro Alves <pedro@codesourcery.com>
2261
2262 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
2263 unnecessary space in string.
2264 * filesystem.c (_initialize_filesystem): Ditto.
2265 * frame.c (_initialize_frame): Ditto.
2266 * infcmd.c (step_once): Ditto.
2267 * infrun.c (_initialize_infrun): Ditto.
2268 * linux-nat.c (linux_child_follow_fork): Ditto.
2269 * maint.c (maintenance_deprecate): Ditto.
2270 * memattr.c (_initialize_mem): Ditto.
2271 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2272 * monitor.c (monitor_open): Ditto.
2273 * procfs.c (procfs_xfer_memory): Ditto.
2274 * reverse.c (bookmarks_info): Ditto.
2275 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
2276 * stack.c (_initialize_stack): Ditto.
2277 * tracepoint.c (_initialize_tracepoint): Ditto.
2278 * xtensa-tdep.c (xtensa_supply_gregset,
2279 xtensa_regset_from_core_section): Ditto.
2280
b65c7efe
TT
22812010-07-01 Tom Tromey <tromey@redhat.com>
2282
2283 * value.h (struct lval_funcs) <check_any_valid>: Rename from
2284 check_all_valid.
2285 * value.c (value_entirely_optimized_out): Invert result. Update
2286 for new function name.
2287
0fb4aa4b
PA
22882010-07-01 Pedro Alves <pedro@codesourcery.com>
2289
2290 Static tracepoints support.
2291
2292 * NEWS: Mention new support for static tracepoints.
2293 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
2294 qXfer:statictrace:read.
2295 (New features in the GDB remote stub, GDBserver): Mention static
2296 tracepoints support using an UST based backend.
2297 (New commands): Mention "info static-tracepoint-markers" and
2298 "strace".
2299 * breakpoint.c (is_marker_spec): New.
2300 (is_tracepoint): Handle static tracepoints.
2301 (validate_commands_for_breakpoint): Static tracepoints can't do
2302 while-stepping.
2303 (static_tracepoints_here): New.
2304 (bpstat_what): Handle static tracepoints.
2305 (print_one_breakpoint_location, allocate_bp_location, mention):
2306 Ditto.
2307 (create_breakpoint_sal): Ditto.
2308 (decode_static_tracepoint_spec): New.
2309 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
2310 `type_wanted'. Adjust. Handle static tracepoint marker
2311 locations.
2312 (break_command_1): Adjust.
2313 (update_static_tracepoint): New.
2314 (update_breakpoint_locations): Handle static tracepoints.
2315 (breakpoint_re_set_one): Handle static tracepoint marker
2316 locations.
2317 (disable_command, enable_command): Handle static tracepoints.
2318 (trace_command, ftrace_command): Adjust.
2319 (strace_command): New.
2320 (create_tracepoint_from_upload): Adjust.
2321 (save_breakpoints): Handle static tracepoints.
2322 (_initialize_breakpoint): Install the "strace" command.
2323 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
2324 (struct breakpoint): New fields static_trace_marker_id and
2325 static_trace_marker_id_idx.
2326 (breakpoints_here_p): Declare.
2327 (create_breakpoint): Adjust.
2328 (static_tracepoints_here): Declare.
2329 * remote.c (struct remote_state) <static_tracepoints>: New field.
2330 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
2331 (remote_static_tracepoint_marker_at): New.
2332 (remote_static_tracepoint_markers_by_strid): New.
2333 (remote_static_tracepoint_feature): New.
2334 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
2335 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
2336 (remote_supports_static_tracepoints): New.
2337 (remote_download_tracepoint): Download static tracepoints.
2338 (init_remote_ops): Install remote_static_tracepoint_marker_at and
2339 remote_static_tracepoint_markers_by_strid.
2340 (_initialize_remote): Install set|show remote static-tracepoints,
2341 and set|show remote read-sdata-object commands.
2342 * target.c (update_current_target): Inherit and default
2343 to_static_tracepoint_marker_at, and
2344 to_static_tracepoint_markers_by_strid.
2345 * target.h (static_tracepoint_marker): Forward declare.
2346 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 2347 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
2348 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
2349 (struct target_ops): New fields to_static_tracepoint_marker_at and
2350 to_static_tracepoint_markers_by_strid.
2351 (target_static_tracepoint_marker_at)
2352 (target_static_tracepoint_markers_by_strid): New.
2353 * tracepoint.c: Include source.h.
2354 (validate_actionline): Handle $_sdata.
2355 (struct collection_list): New field strace_data.
2356 (add_static_trace_data): New.
2357 (clear_collection_list): Clear strace_data.
2358 (stringify_collection_list): Account for a possible static trace
2359 data collection.
2360 (encode_actions_1): Encode an $_sdata collection.
2361 (parse_tracepoint_definition): Handle static tracepoints.
2362 (parse_static_tracepoint_marker_definition): New.
2363 (release_static_tracepoint_marker): New.
2364 (print_one_static_tracepoint_marker): New.
2365 (info_static_tracepoint_markers_command): New.
2366 (sdata_make_value): New.
2367 (_initialize_tracepoint): Create the $_sdata convenience variable.
2368 Add the "info static-tracepoint-markers" command.
2369 Mention $_sdata in the "collect" command's help output.
2370 * tracepoint.h (struct static_tracepoint_marker): New.
2371 (parse_static_tracepoint_marker_definition)
2372 (release_static_tracepoint_marker): Declare.
2373 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2374 * python/py-breakpoint.c (bppy_new): Adjust.
2375
aac63f0f
JB
23762010-06-30 Joel Brobecker <brobecker@adacore.com>
2377
2378 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
2379 including Python.h.
2380
e68994a7
DE
23812010-06-29 Doug Evans <dje@google.com>
2382
3863f96c
DE
2383 PR gdb/11702
2384 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
2385 DW_AT_external is present.
2386
254e6b9e
DE
2387 PR gdb/11702
2388 * NEWS: Add entry.
2389 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
2390 create a symbol for the field and record the value.
2391 (new_symbol): Handle DW_TAG_member.
2392 * gdbtypes.c (field_is_static): Remove FIXME.
2393 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
2394 only ignore LOC_CONST symbols that are enums.
2395
6e70227d
DE
2396 * dwarf2read.c: Remove trailing whitespace.
2397
e68994a7
DE
2398 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
2399 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
2400 (struct main_type, field loc): Delete dwarf_block.
2401 (FIELD_DWARF_BLOCK): Delete.
2402 (SET_FIELD_DWARF_BLOCK): Delete.
2403 (TYPE_FIELD_DWARF_BLOCK): Delete.
2404 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
2405 Update.
2406
a480d2f6
HZ
24072010-06-29 Hui Zhu <teawater@gmail.com>
2408
2409 * record.c (set_record_pic_cmdlist,
2410 show_record_pic_cmdlist): New variables.
2411 (set_record_pic_command,
2412 show_record_pic_command): New functions.
2413 (record_pic_function, record_pic_line, record_pic_enum,
2414 set_record_pic_type, record_pic_hide_nofunction,
2415 record_pic_hide_nosource, record_pic_hide_same): New variables.
2416 (record_pic_fputs): New function.
2417 (function_list, node_list, edge_list): New struct.
2418 (function_list, node_list, edge_list): New variables.
2419 (record_pic_cleanups, record_pic_node,
2420 record_pic_edge, cmd_record_pic): New functions.
2421 (_initialize_record): Add new commands for record pic.
2422
a0d7a4ff
JK
24232010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2424
2425 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
2426 ALLOCATE_CPLUS_STRUCT_TYPE.
2427
595939de 24282010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
2429 Tom Tromey <tromey@redhat.com>
2430 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
2431
2432 * value.c (pack_unsigned_long): New function.
2433 (value_from_ulongest): New function.
2434 * value.h (value_from_ulongest): Declare.
2435 * python/python.c (_initialize_python): Call
2436 gdbpy_initialize_thread and gdbpy_initialize_inferior.
2437 * python/python-internal.h: Define thread_object.
2438 (gdbpy_inferiors, gdbpy_selected_thread)
2439 (frame_info_to_frame_object, create_thread_object)
2440 (find_thread_object, find_inferior_object)
2441 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
2442 (gdbpy_is_value_object, get_addr_from_python): Declare.
2443 * python/py-value.c (builtin_type_upylong): Define.
2444 (convert_value_from_python): Add logic for ulongest.
2445 (gdbpy_is_value_object): New function.
2446 * python/py-utils.c (get_addr_from_python): New function.
2447 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
2448 (gdbpy_selected_frame): Use PyObject over frame_info.
2449 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
2450 py-infthread.
2451 (SUBDIR_PYTHON_SRCS): Likewise.
2452 (py-inferior.o): New Rule.
2453 (py-infthread.o): New Rule.
2454 * python/py-inferior.c: New File.
2455 * python/py-infthread.c: New File.
2456
98751a41
JK
24572010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2458
2459 * c-typeprint.c (c_type_print_base): For no fields check include also
2460 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
2461 * dwarf2read.c (struct typedef_field_list)
2462 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
2463 (dwarf2_add_typedef): New.
2464 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
2465 Copy also FI.TYPEDEF_FIELD_LIST.
2466 * gdbtypes.h (struct typedef_field)
2467 (struct cplus_struct_type) <typedef_field, typedef_field_count>
2468 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
2469 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
2470
41f62f39
JK
24712010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2472
2473 * cp-namespace.c (cp_lookup_nested_type): New variable
2474 concatenated_name. Turn the current return condition into a reverse
2475 one. Call also lookup_static_symbol_aux on the constructed qualified
2476 name.
2477 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
2478 other files into a called ...
2479 (lookup_static_symbol_aux): ... new function here.
2480 * symtab.h (lookup_static_symbol_aux): New prototype.
2481 * valops.c (value_maybe_namespace_elt): Call also
2482 lookup_static_symbol_aux if we failed otherwise.
2483
af53d231
JK
24842010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2485
2486 Fix PR c++/11703 and PR gdb/1448.
2487 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
2488 FIRST_ITER check.
2489
9655fd1a
JK
24902010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2491
2492 Fix modification of cplus_struct_default.
2493 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
2494 Call ALLOCATE_CPLUS_STRUCT_TYPE.
2495 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
2496
9279c692
JB
24972010-06-28 Joel Brobecker <brobecker@adacore.com>
2498
2499 * NEWS: Add entry announcing the python directory.
2500
d3f41bb1
TT
25012010-06-28 Tom Tromey <tromey@redhat.com>
2502
2503 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
2504
23e7acfb
DE
25052010-06-28 Doug Evans <dje@google.com>
2506
2507 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
2508 All callers updated.
2509
6036c742
JK
25102010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2511
2512 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
2513 obstack_begin after each obstack_free.
2514
9f18a3b3
DE
25152010-06-27 Doug Evans <dje@google.com>
2516
1596cb5d
DE
2517 * value.c (value_static_field): Use `switch' instead of `if'.
2518 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
2519
9f18a3b3
DE
2520 * valops.c (search_struct_field): Fix typo in error message.
2521
43dabe42
UW
25222010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
2523
2524 * dwarf2expr.c (execute_stack_op): Place preprocessor
2525 directives at the start of the source line.
2526
0f3bb72e
PH
25272010-06-25 Paul Hilfinger <hilfinger@adacore.com>
2528
6036c742
JK
2529 * defs.h (make_command_stats_cleanup): Declare.
2530 (set_display_time): Declare.
2531 (set_display_space): Declare.
2532 * event-top.c (command_handler): Use make_command_stats_cleanup.
2533 * main.c (display_time, display_space): Move definitions to utils.c.
2534 (captured_main): Use make_command_stats_cleanup to get start-up
2535 statistics.
2536 Use set_display_time and set_display_space for processing OPT_STATISTICS
2537 case.
2538 * maint.c (maintenance_time_display): Use set_display_time.
2539 (maintenance_space_display): Use set_display_space.
2540 * top.c (execute_command): Remove obsolete 'maint time' code.
2541 (command_loop): Use make_command_stats_cleanup.
2542 * utils.c (struct cmd_stats): Structure for storing initial time
2543 and space usage.
2544 (display_time, display_space): Move definitions here from utils.c.
2545 (set_display_time): New function.
2546 (set_display_space): New function.
2547 (make_command_stats_cleanup): New function.
2548 (report_command_stats): New auxiliary function for
2549 make_command_stats_cleanup.
0f3bb72e 2550
070c8028
UW
25512010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2552
2553 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
2554 hosts where CORE_ADDR is long long.
2555
bc9f0842
TT
25562010-06-25 Tom Tromey <tromey@redhat.com>
2557
2558 PR python/10808:
2559 * python/python.c (execute_gdb_command): Add keywords. Accept
2560 "to_string" argument.
2561 (struct restore_ui_file_closure): New.
2562 (restore_ui_file): New function.
2563 (make_cleanup_restore_ui_file): Likewise.
2564 (GdbMethods) <execute>: Update.
2565
c0cc4c83
UW
25662010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2567
2568 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
2569 during inferior call stack frame setup.
2570
f1d8ee66
UW
25712010-06-25 Ken Werner <ken.werner@de.ibm.com>
2572
2573 * solib-spu.c: Include "exception.h".
2574 (ocl_program_data_key): New variable.
2575 (append_ocl_sos): New function.
2576 (ocl_enable_break): Likewise.
2577 (spu_current_sos): Call append_ocl_sos.
2578 (spu_solib_loaded): Call ocl_enable_break.
2579 (_initialize_spu_solib): Register ocl_program_data_key.
2580
19c0c0f8
UW
25812010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2582
2583 * cp-support.c (reset_directive_searched): New function.
2584 (make_symbol_overload_list_using): Prevent recursive calls.
2585
0f6a939d
PM
25862010-06-25 Phil Muldoon <pmuldoon@redhat.com>
2587
2588 * printcmd.c (print_variable_and_value): Print error message on
2589 caught exception.
2590
f2c7657e
UW
25912010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2592
2593 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
2594 of stack values.
2595 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
2596 "value" member.
2597 (dwarf_expr_push): Change input type to ULONGEST.
2598 (dwarf_expr_fetch): Change return type to ULONGEST.
2599 (dwarf_expr_fetch_address): Add prototype.
2600 (dwarf2_read_address): Remove prototype.
2601 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
2602 Truncate stack values to ctx->addr_size bytes.
2603 (dwarf_expr_fetch): Change return value to ULONGEST.
2604 (dwarf_expr_fetch_address): New function.
2605 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
2606 when appropriate. Update for struct dwarf_expr_piece changes.
2607 (dwarf2_read_address): Remove.
2608 (unsigned_address_type): Remove.
2609 (signed_address_type): Remove.
2610 (execute_stack_op): Use dwarf_expr_fetch_address instead of
2611 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
2612 values. Perform operations on ULONGEST instead of on GDB values,
2613 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
2614 values and DW_OP_deref results as unsigned integers.
2615 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
2616 changes.
2617 (write_pieced_value): Likewise.
2618 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
2619 dwarf_expr_fetch when appropriate.
2620 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
2621 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
2622 instead of dwarf_expr_fetch when appropriate.
2623
b1d61bc9
PM
26242010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
2625
2626 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
2627
b14285f6
JB
26282010-06-24 Joel Brobecker <brobecker@adacore.com>
2629
2630 * python/python.c (_initialize_python): Add new "constant"
2631 PYTHONDIR in gdb module. Insert this path at the head of
2632 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
2633 exec its __init__.py script if it exists in that directory.
2634
fd60dc69
KB
26352010-06-24 Kevin Buettner <kevinb@redhat.com>
2636
2637 * rx-tdep.c (RX_ACC_REGNUM): Define.
2638 (RX_NUM_REGS): Redefine to 26.
2639 (rx_register_name): Add register "acc". Change order of several
2640 registers. Change name of "vct" register to "fintv" to match RX
2641 documentation.
2642 (rx_register_type): Add case for RX_ACC_REGNUM.
2643
18430289
TT
26442010-06-24 Tom Tromey <tromey@redhat.com>
2645
2646 * psymtab.c (lookup_partial_symbol): Mark definition as static.
2647
40618926
JK
26482010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2649 Tom Tromey <tromey@redhat.com>
2650
2651 Fix GDB startup on readonly filesystem.
2652 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
2653
628fe4e4
JK
26542010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2655 Pedro Alves <pedro@codesourcery.com>
2656
2657 Fix PR 9436.
2658 * breakpoint.c (handle_jit_event): New function.
2659 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
2660 jit, err, table and bs_class. New variables shlib_event, jit_event,
2661 this_action and bptype. Change bs_class assignments to this_action
2662 assignments. new unhandled bptype internal error. Move here
2663 shlib_event and jit_event handling from handle_inferior_event.
2664 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
2665 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
2666 BPSTAT_WHAT_CHECK_JIT.
2667 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
2668 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
2669 (handle_inferior_event): Reinitialize frame and gdbarch after
2670 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
2671 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
2672 gdbarch when frame gets reinitialized.
2673
f1421989
HZ
26742010-06-24 Hui Zhu <teawater@gmail.com>
2675
2676 * printcmd.c (ui_printf): New function.
2677 (printf_command): Call ui_printf.
2678 (_initialize_printcmd): New command "eval".
2679
d03285ec
UW
26802010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2681
2682 * infrun.c (handle_inferior_event): Handle presence of single-step
2683 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
2684 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
2685 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
2686 * breakpoint.c (detach_single_step_breakpoints): New function.
2687 (detach_breakpoints): Call it.
2688 (cancel_single_step_breakpoints): New function.
2689 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
2690
2691 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
2692 (spu_gdbarch_init): Install it.
2693
38f6b338
JK
26942010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2695
2696 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
2697 * configure: Regenerate.
2698
bb08c432
HZ
26992010-06-22 Hui Zhu <teawater@gmail.com>
2700
2701 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
2702 (i386_process_record): Ditto.
2703 * record.c (record_memory_query): New variable.
2704 (_initialize_record): New command "set record memory-query".
2705 * record.h (record_memory_query): New extern.
2706
b55078be
DE
27072010-06-21 Doug Evans <dje@google.com>
2708
2709 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
2710 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
2711 (i386_syscall_p): Change type of lengthp to int.
2712 (i386_displaced_step_fixup): Handle kernels that run one past a
2713 syscall insn.
2714 * i386-linux-tdep.c (i386_linux_init_abi): Use
2715 i386_displaced_step_copy_insn instead of
2716 simple_displaced_step_copy_insn.
2717
75079b2b
TT
27182010-06-21 Tom Tromey <tromey@redhat.com>
2719
2720 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
2721 (dwarf_type_encoding_name): Likewise.
2722
b00fdb78
TT
27232010-06-21 Tom Tromey <tromey@redhat.com>
2724
2725 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
2726 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
2727 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
2728 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
2729 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
2730 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
2731 * dwarf2read.c (tag_type_to_type): Create a new error type on
2732 failure.
2733 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
2734 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
2735
84951ab5
MS
27362010-06-21 Michael Snyder <msnyder@vmware.com>
2737
889bf7c5 2738 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
2739 not add_abbrev_prefix_cmd, for "enable breakpoints".
2740
d4a087c7
UW
27412010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
2742
2743 * dwarf2loc.c (find_location_expression): Add relocation offset
2744 to base-address-selection entry base addresses. Read addresses
2745 (and offsets) as signed/unsigned integers, depending on the
2746 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
2747 (loclist_describe_location): Likewise.
2748 (disassemble_dwarf_expression): Read DW_OP_addr operand as
2749 unsigned integer. Do not call dwarf2_read_address.
2750 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
2751
13def385
UW
27522010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2753
2754 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
2755 value instead of hard-coded SPU_LS_SIZE.
2756 (spu_software_single_step): Likewise.
2757 * spu-tdep.h (SPU_LS_SIZE): Remove.
2758
d2ed6730
UW
27592010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2760
2761 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
2762 limit on local store memory accesses.
2763 * spu-linux-nat.c (spu_xfer_partial): Likewise.
2764 * spu-tdep.c (spu_lslr): Remove.
2765 (spu_pointer_to_address): Do not truncate addresses.
2766 (spu_integer_to_address): Likewise.
2767 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
2768 * spu-tdep.h: Add comments.
2769 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
2770 (SPU_OVERLAY_LMA): Define.
2771
6aed2dbc
SS
27722010-06-18 Stan Shebs <stan@codesourcery.com>
2773
a61408f8
SS
2774 * osdata.c (get_osdata): Warn separately if target does not report
2775 type list.
2776 (info_osdata_command): Allow empty type, report error if target
2777 does not return available types of OS data.
2778 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
2779 types if no annex supplied.
2780
6aed2dbc
SS
2781 * thread.c (thread_id_make_value): Make a value representing the
2782 current thread.
2783 (_initialize_thread): Create $_thread.
2784
ec61707d
JB
27852010-06-17 Joel Brobecker <brobecker@adacore.com>
2786
2787 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
2788 last local variable declaration. No real code change.
2789
60606b2c
TT
27902010-06-17 Tom Tromey <tromey@redhat.com>
2791
2792 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
2793 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
2794 temporary obstack.
2795
65d79d4b
SDJ
27962010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
2797 Jan Kratochvil <jan.kratochvil@redhat.com>
2798
2799 * breakpoint.c: Include parser-defs.h.
2800 (watchpoint_exp_is_const): New function.
2801 (watch_command_1): Call watchpoint_exp_is_const to check
2802 if the expression is constant.
2803
0407b3f1
AS
28042010-06-15 Andreas Schwab <schwab@linux-m68k.org>
2805
2806 * configure.ac: Check for RDYNAMIC also for cross builds.
2807 * configure: Regenerate.
2808
98d64339
PA
28092010-06-15 Pedro Alves <pedro@codesourcery.com>
2810
2811 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2812 (SFILES): Remove solib-null.c, add solib-target.c.
2813 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
2814 (ALLDEPFILES): Remove solib-target.c.
2815 * solib-target.c (_initialize_solib_target): Set
2816 current_target_so_ops to solib_target_so_ops if not already set.
2817 * solib-null.c: Delete.
2818
6a271cae
PA
28192010-06-14 Pedro Alves <pedro@codesourcery.com>
2820
2821 * NEWS: Mention GDBserver's JIT compilation of tracepoint
2822 bytecode.
2823
1e9beacb
UW
28242010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2825
2826 * cp-valprint.c (cp_print_static_field): Members of
2827 dont_print_stat_array_obstack are of type "struct type *".
2828 (_initialize_cp_valprint): Likewise.
2829
21a176fb
UW
28302010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2831
2832 * frame.c (frame_register_unwind): Do not access contents
2833 of "optimized out" unwound register value.
2834
25b524e8
JK
28352010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2836
2837 * ada-lang.h (ada_print_type): Make varstring const.
2838 * ada-typeprint.c (print_func_type): Make name const.
2839 (ada_print_type): Make varstring const.
2840 * c-lang.h (c_print_type): Make varstring const.
2841 * c-typeprint.c (c_print_type): Likewise.
2842 * f-lang.h (f_print_type): Likewise.
2843 * f-typeprint.c (f_print_type): Likewise.
2844 * jv-lang.h (java_print_type): Likewise.
2845 * jv-typeprint.c (java_print_type): Likewise.
2846 * language.c (unk_lang_print_type): Likewise.
2847 * language.h (struct language_defn) <la_print_type>: Likewise.
2848 * m2-lang.h (m2_print_type): Likewise.
2849 * m2-typeprint.c (m2_print_type): Likewise.
2850 * p-lang.h (pascal_print_type): Likewise.
2851 * p-typeprint.c (pascal_print_type): Likewise.
2852
d914c394
SS
28532010-06-11 Stan Shebs <stan@codesourcery.com>
2854
2855 Add per-operation permission flags.
2856
2857 * target.h (struct target_ops): New method to_set_permissions.
2858 (target_set_permissions): New macro.
2859 (target_insert_breakpoint): Change macro to function.
2860 (target_remove_breakpoint): Ditto.
2861 (target_stop): Ditto.
2862 (may_write_registers): Declare.
2863 (may_write_memory): Declare.
2864 (may_insert_breakpoints): Declare.
2865 (may_insert_tracepoints): Declare.
2866 (may_insert_fast_tracepoints): Declare.
2867 (may_stop): Declare.
2868 * target.c (may_write_registers, may_write_registers_1): New globals.
2869 (may_write_memory, may_write_memory_1): New globals.
2870 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
2871 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
2872 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
2873 globals.
2874 (may_stop, may_stop_1): New global.
2875 (target_xfer_partial): Test for write permission.
2876 (target_store_registers): Ditto.
2877 (target_insert_breakpoint): New function.
2878 (target_remove_breakpoint): New function.
2879 (target_stop): New function.
2880 (_initialize_targets): Add new set/show variables.
2881 (set_write_memory_permission): New function.
2882 (update_target_permissions): New function.
2883 (set_target_permissions): New function.
2884 (update_current_target): Default to_set_permissions.
2885 (_initialize_targets): Use new globals and setter function.
2886 * tracepoint.c (start_tracing): Test for permission.
2887 * inferior.h (update_observer_mode): Declare.
2888 * infrun.c (non_stop_1): Define earlier.
2889 (observer_mode, observer_mode_1): New globals.
2890 (set_observer_mode, show_observer_mode): New functions.
2891 (update_observer_mode): New function.
2892 (_initialize_infrun): Define "set observer" command.
2893 * remote.c (PACKET_QAllow): New optional packet.
2894 (remote_protocol_features): Add QAllow.
2895 (remote_set_permissions): New function.
2896 (remote_start_remote): Call it.
2897 (init_remote_ops): Add it to target vector.
2898 (_initialize_remote): Add config command for QAllow.
2899
aec5aa8b
TT
29002010-06-11 Tom Tromey <tromey@redhat.com>
2901
2902 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
2903 DW_AT_vtable_elem_location even when GCC extension is seen.
2904
0e03807e
TT
29052010-06-11 Tom Tromey <tromey@redhat.com>
2906
2907 PR gdb/9977, PR exp/11636:
2908 * value.h (value_offset): Update.
2909 (struct lval_funcs) <check_validity>: New field.
2910 <copy_closure>: Make argument const.
2911 (value_computed_closure): Update.
2912 (value_contents_for_printing): Declare.
2913 (value_bits_valid): Likewise.
2914 (val_print): Likewise.
2915 (set_value_component_location): Update.
2916 (value_entirely_optimized_out): Declare.
2917 * value.c (value_offset): Argument now const.
2918 (require_not_optimized_out): New function.
2919 (value_contents_for_printing): New function.
2920 (value_contents_all): Call require_not_optimized_out.
2921 (value_contents): Likewise.
2922 (value_bits_valid): New function.
2923 (value_computed_closure): Argument now const.
2924 (set_value_component_location): Make 'whole' argument const.
2925 (value_entirely_optimized_out): New function.
2926 (value_bitsize): Argument now 'const'.
2927 (value_bitpos): Likewise.
2928 (value_type): Likewise.
2929 * valprint.h (val_print_array_elements): Update.
2930 * valprint.c (val_print): Add 'val' argument. Use
2931 valprint_check_validity.
2932 (valprint_check_validity): New function.
2933 (value_check_printable): Use value_entirely_optimized_out.
2934 (common_val_print): Update.
2935 (value_print): Likewise.
2936 (val_print_array_elements): Add 'val' argument.
2937 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
2938 value_bits_valid. Reinit frame cache for lval_computed.
2939 * sh64-tdep.c (sh64_do_register): Update.
2940 * scm-valprint.c (scm_val_print): Add 'val' argument.
2941 * scm-lang.h (scm_val_print): Update.
2942 * python/python.h (apply_val_pretty_printer): Update.
2943 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
2944 argument. Call set_value_component_location.
2945 * printcmd.c (print_scalar_formatted): Update.
2946 * p-valprint.c (pascal_val_print): Add 'val' argument.
2947 (pascal_object_print_value_fields): Likewise.
2948 (pascal_object_print_value): Likewise.
2949 (pascal_object_print_static_field): Update.
2950 * p-lang.h (pascal_val_print): Update.
2951 (pascal_object_print_value_fields): Update.
2952 * mt-tdep.c (mt_registers_info): Update.
2953 * mi/mi-main.c (get_register): Update.
2954 (mi_cmd_data_evaluate_expression): Use common_val_print.
2955 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
2956 (m2_print_unbounded_array): Likewise.
2957 (m2_val_print): Likewise.
2958 * m2-lang.h (m2_val_print): Update.
2959 * language.h (struct language_defn) <la_val_print>: Add 'val'
2960 argument.
2961 (LA_VAL_PRINT): Likewise.
2962 * language.c (unk_lang_val_print): Add 'val' argument.
2963 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
2964 (java_val_print): Likewise.
2965 * jv-lang.h (java_val_print): Add 'val' argument.
2966 * infcmd.c (default_print_registers_info): Update.
2967 * f-valprint.c (f77_print_array_1): Add 'val' argument.
2968 (f77_print_array): Likewise.
2969 (f_val_print): Likewise.
2970 * f-lang.h (f_val_print): Add 'val' argument.
2971 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
2972 value_bitpos.
2973 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
2974 set_value_optimized_out.
2975 (write_pieced_value): Use value_bitsize and value_bitpos.
2976 <default>: Don't exit loop.
2977 (check_pieced_value_validity): New function.
2978 (pieced_value_funcs): Reference check_pieced_value_validity,
2979 check_pieced_value_invalid.
2980 (copy_pieced_value_closure): Update.
2981 (check_pieced_value_bits): New function.
2982 (check_pieced_value_invalid): New function.
2983 * d-valprint.c (dynamic_array_type): Add 'val' argument.
2984 (d_val_print): Likewise.
2985 * d-lang.h (d_val_print): Update.
2986 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
2987 (cp_print_value_fields_rtti): Likewise.
2988 (cp_print_value): Likewise.
2989 (cp_print_static_field): Update.
2990 * c-valprint.c (c_val_print): Add 'val' argument.
2991 (c_value_print): Update.
2992 * c-lang.h (c_val_print): Update.
2993 (cp_print_value_fields): Likewise.
2994 (cp_print_value_fields_rtti): Likewise.
2995 * ada-valprint.c (struct ada_val_print_args): Remove.
2996 (val_print_packed_array_elements): Add 'val' argument.
2997 (ada_val_print): Likewise. Rewrite.
2998 (ada_val_print_stub): Remove.
2999 (ada_val_print_array): Add 'val' argument.
3000 (ada_val_print_1): Likewise.
3001 (print_variant_part): Likewise.
3002 (ada_value_print): Update.
3003 (print_record): Add 'val' argument.
3004 (print_field_values): Likewise.
3005 * ada-lang.h (ada_val_print): Update.
3006
3cf03773
TT
30072010-06-11 Tom Tromey <tromey@redhat.com>
3008
3009 * vec.h (VEC_cleanup): New macro.
3010 (DEF_VEC_ALLOC_FUNC_I): Update.
3011 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3012 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3013 * dwarf2loc.c (struct axs_var_loc): Remove.
3014 (unimplemented): New function.
3015 (translate_register): Likewise.
3016 (access_memory): Likewise.
3017 (compile_dwarf_to_ax): Likewise.
3018 (dwarf2_tracepoint_var_loc): Remove.
3019 (dwarf2_tracepoint_var_access): Likewise.
3020 (dwarf2_tracepoint_var_ref): Likewise.
3021 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3022 (loclist_tracepoint_var_ref): Likewise.
3023 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3024 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3025 require_composition. No longer static.
3026 (execute_stack_op): Update.
3027 * ax-gdb.h (trace_kludge): Declare.
3028
2bdf28a0
JK
30292010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3030
3031 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3032 (should_be_inserted): Return zero also on NULL OWNER.
3033 (breakpoint_program_space_exit): New OWNER comment.
3034 (insert_breakpoint_locations): Extend comment for OWNER.
3035 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3036 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3037 New OWNER comment.
3038 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3039 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3040 (bpstat_check_location): New assert on OWNER.
3041 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3042 and B initializations to the code block. New assert on them.
3043 (print_one_breakpoint_location): New OWNER comment.
3044 (watchpoint_locations_match): Assert on OWNER.
3045 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3046 initializations to the code block. New assert on OWNER.
3047 (set_breakpoint_location_function): New assert on OWNER.
3048 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3049 (bp_location_compare, update_global_location_list)
3050 (update_global_location_list): New OWNER comment.
3051
5b9a19af
UW
30522010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3053
3054 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
3055
669211f5
UW
30562010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3057
3058 * config/nm-linux.h (struct target_ops): Remove forward declaration.
3059 (lin_thread_get_thread_signals): Remove prototype.
3060 (GET_THREAD_SIGNALS): Remove.
3061 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
3062 * linux-thread-db.c (check_thread_signals): Directly call
3063 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
3064
b7a8b4ef
UW
30652010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3066
3067 * gregset.h (GDB_FPXREGSET_T): Remove.
3068 (gdb_fpxregset_t): Likewise.
3069 (supply_fpxregset): Remove prototype.
3070 (fill_fpxregset): Likewise.
3071 * i386-linux-nat.c (supply_fpxregset): Remove.
3072 (fill_fpxregset): Likewise.
3073 (fetch_fpxregs): Inline supply_fpxregset call.
3074 (store_fpxregs): Inline fill_fpxregset call.
3075
3076 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3077 * config/i386/nm-linux.h: Remove file.
3078
82892036
MS
30792010-06-09 Michael Snyder <msnyder@vmware.com>
3080
3081 * target.c (update_current_target): Fix spelling error in comment.
3082 (target_mourn_inferior): Fix spelling error in error message.
3083
5ddb52fa
PH
30842010-06-08 Paul Hilfinger <hilfingr@adacore.com>
3085
3086 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
3087 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
3088
0f2caa1b
MS
30892010-06-08 Michael Snyder <msnyder@vmware.com>
3090
3091 * remote.c (remote_close): Set inferior_ptid to null_ptid.
3092
3bebe2f2
JK
30932010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3094
3095 * configure.ac <"${have_libpython}" != no>: New workaround of
3096 python#4434.
3097 * configure: Regenerate.
3098
eaaffdf4
HZ
30992010-06-08 Hui Zhu <teawater@gmail.com>
3100
3101 * record.c (record_wait): Move signal out of replay code.
3102
5c631832
JK
31032010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3104
3105 Fix PR 10640.
3106 * dwarf2-frame.c (no_dwarf_call): New function.
3107 (execute_stack_op): Set CTX->DWARF_CALL.
3108 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
3109 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
3110 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
3111 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
3112 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
3113 (needs_frame_dwarf_call): New function.
3114 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
3115 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
3116 Update the comment. Move variables die, offset and error call to ...
3117 (follow_die_ref): ... a new function.
3118 (dwarf2_fetch_die_location_block): New function.
3119 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
3120
17ea53c3
JK
31212010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3122
3123 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
3124 (dwarf_expr_tls_address): Use per_cu instead of objfile.
3125 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
3126 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
3127 this change.
3128 (struct needs_frame_baton): New field per_cu.
3129 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
3130 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
3131
245040d7
SW
31322010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3133
3134 * cp-support.c (make_symbol_overload_list_namespace): Only search
3135 static and global blocks.
3136 (make_symbol_overload_list_block): New function.
3137 (make_symbol_overload_list): Separate namespace search from block
3138 search.
3139 (make_symbol_overload_list_qualified): Use
3140 make_symbol_overload_list_block.
3141
4c3376c8
SW
31422010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3143
3144 * value.h: Created oload_search_type enum.
3145 (find_overload_match): Use oload_search_type enum.
3146 * valops.c (find_overload_match): Support combined member and
3147 non-member search.
3148 * eval.c (evaluate_subexp_standard): Calls to
3149 find_overload_match now use oload_search_type enum.
3150 (oload_method_static): Verify index is a proper value.
3151 * valarith.c (value_user_defined_cpp_op): Search for and handle
3152 both member and non-member operators.
3153 (value_user_defined_cpp_op): New function.
3154 (value_user_defined_op): New function.
3155 (value_x_unop): Use value_user_defined_op.
3156 (value_x_binop): Ditto.
3157 * cp-support.c (make_symbol_overload_list_using): Added block
3158 iteration.
3159 Add check for namespace aliases and imported declarations.
3160
ee55da67
JK
31612010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3162
3163 * breakpoint.h (owner): Extend the comment.
3164
1a2ab13a
JK
31652010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3166
3167 Clear stale specific bp_location from former whole breakpoint.
3168 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
3169 code ...
3170 (free_bp_location): ... here. Rename there the called function to
3171 bpstat_remove_bp_location_callback.
3172 (bpstat_remove_breakpoint_callback): Rename to ...
3173 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
3174 to struct bp_location. Change the called function to
3175 bpstat_remove_bp_location. Create new declaration for the function.
3176 (bpstat_remove_breakpoint): Rename to ...
3177 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
3178 code for the new parameter type.
3179
16d6b4b7
NS
31802010-06-07 Nathan Sidwell <nathan@codesourcery.com>
3181
3182 * README: Make version-agnostic.
3183
7e314c57
JK
31842010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3185
3186 Fix duplicate types for single DIE.
3187 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
3188 set_die_type.
3189 (read_array_type): Remove type initialization. Recheck get_die_type
3190 after initial die_type. Move set_die_type before set_descriptive_type.
3191 (read_set_type): New variable domain_type. Recheck get_die_type after
3192 initial die_type. Move attr initialization later.
3193 (read_tag_pointer_type, read_tag_reference_type): New variable
3194 target_type. Recheck get_die_type after initial die_type.
3195 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
3196 die_type and die_containing_type.
3197 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
3198 Recheck get_die_type after initial die_type.
3199 (read_subrange_type): Recheck get_die_type after initial die_type.
3200 Move set_die_type before set_descriptive_type.
3201 (set_die_type): Extend the function comment. Call complaint if DIE has
3202 some type already set.
3203
2f296114
VP
32042010-06-05 Vladimir Prus <vladimir@codesourcery.com>
3205
3206 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
3207 for current naming of thread groups (iN, not N).
3208
554794dc
SDJ
32092010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3210
3211 * ada-lang.c (ada_operator_length): Constify `struct expression'.
3212 * parse.c (operator_length): Likewise.
3213 (operator_length_standard): Likewise.
3214 * parser-defs.h (operator_length): Likewise.
3215 (operator_length_standard): Likewise.
3216 (struct exp_descriptor <operator_length>): Likewise.
3217
967cf477
DE
32182010-06-04 Doug Evans <dje@google.com>
3219
bddaacb9 3220 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
3221 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
3222 * python/python-internal.h (gdbpy_enabled_cst): Declare.
3223 * python/python.c (gdbpy_enabled_cst): Define.
3224 (_initialize_python): Initialize gdbpy_enabled_cst.
3225 * NEWS: Add entry.
3226
2dec564e
JK
32272010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3228
3229 * breakpoint.c (update_global_location_list): Fix comment typo.
3230
44b5680a
HZ
32312010-06-04 Hui Zhu <teawater@gmail.com>
3232
3233 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
3234
e7a30f46
DE
32352010-06-03 Doug Evans <dje@google.com>
3236
3237 * configure.ac: Don't fail if python is unusable when
3238 configured with --with-python=auto.
3239 * configure: Regenerate.
3240
84b4420f
SW
32412010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
3242
889bf7c5 3243 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 3244
df178451
PM
32452010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
3246
3247 * valprint.h (get_array_bounds): Change low and high parameter types
3248 to LONGEST *.
0407b3f1 3249 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
3250 compute bounds.
3251 (val_print_array_elements): Adapt to change above.
3252 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
3253 * p-valprint.c (pascal_val_print): Likewise.
3254
fd5700c7
JK
32552010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3256
3257 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
3258 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
3259 .F08.
3260
f55ee35c
JK
32612010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3262
3263 Support DW_TAG_module as separate namespaces.
3264 * dwarf2read.c (typename_concat): New parameter physname.
3265 (read_module_type): New function and declaration.
3266 (scan_partial_symbols): Scan also DW_TAG_module children.
3267 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
3268 to typename_concat backward compatible physname value 0.
3269 (partial_die_full_name, read_namespace_type): Pass to typename_concat
3270 backward compatible physname value 0.
3271 (add_partial_module, read_module): Remove FIXME comment.
3272 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
3273 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
3274 DIEs under DW_TAG_module.
3275 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
3276 DW_AT_MIPS_linkage_name first, extend it for language_fortran
3277 && physname and return there instead of just setting NAME. Extend
3278 the main block for language_fortran. Pass physname parameter to the
3279 typename_concat call.
3280 (read_import_statement, read_func_scope, get_scope_pc_bounds)
3281 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
3282 (new_symbol): Fill in cplus_specific.demangled_name if it is still
3283 missing from SYMBOL_SET_NAMES in the language_fortran case.
3284 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
3285 variables.
3286 (read_type_die) <DW_TAG_module>: New.
3287 (MAX_SEP_LEN): Increase to 7.
3288 (typename_concat): New parameter physname. New variable lead. Support
3289 also language_fortran.
3290 * f-exp.y (yylex): Consider : also as a symbol name character class.
3291 * f-lang.c: Include cp-support.h.
3292 (f_word_break_characters, f_make_symbol_completion_list): New functions.
3293 (f_language_defn): Use cp_lookup_symbol_nonlocal,
3294 f_word_break_characters and f_make_symbol_completion_list.
3295 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
3296 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
3297 * symtab.c (symbol_init_language_specific): Support language_fortran.
3298 (symbol_find_demangled_name): New comment on language_fortran.
3299 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
3300 for language_fortran.
3301 (lookup_symbol_aux_local): Check imports also for language_fortran.
3302 (default_make_symbol_completion_list): Rename to ...
3303 (default_make_symbol_completion_list_break_on): ... this name. New
3304 parameter break_on, use it.
3305 (default_make_symbol_completion_list): New stub.
3306 * symtab.h (default_make_symbol_completion_list_break_on): New
3307 prototype.
3308
cb91c06a
JB
33092010-06-02 Joel Brobecker <brobecker@adacore.com>
3310
3311 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
3312 to error.
3313
5c315b68
JK
33142010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3315
3316 * dwarf2read.c (typename_concat): Add const to the variable sep.
3317
9eae7c52
TT
33182010-06-02 Tom Tromey <tromey@redhat.com>
3319
3320 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
3321 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
3322 type is const. Add 'def' argument. Add missing operators, remove
3323 unhandled ones.
3324 (decode_locdesc): Update.
3325 (dwarf2_always_disassemble): New global.
3326 (show_dwarf2_always_disassemble): New function.
3327 (_initialize_dwarf2_read): Add always-disassemble.
3328 (dwarf2_per_cu_offset_size): New function.
3329 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
3330 (piece_end_p): New function.
3331 (locexpr_describe_location_piece): Replace 'size' argument with
3332 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
3333 some constants. Remove errors.
3334 (disassemble_dwarf_expression): New function.
3335 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
3336 Add 'offset_size' argument.
3337 (loclist_describe_location): Change output formatting.
3338 * dwarf2expr.h (dwarf_stack_op_name): Declare.
3339
7d3fe98e
SW
33402010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
3341
3342 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
3343 anonymous type case.
3344
e77813c8
PM
33452010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
3346
3347 * dwarf2read.c (read_subrange_type): Handle missing base type
3348 according to Dwarf-2 specifications.
3349
7cf3118a
SDJ
33502010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
3351
3352 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
3353 BINOP_EXCL.
3354 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
3355 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
3356 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
3357 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
3358 UNOP_CHMAX, UNOP_CHMIN.
3359 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
3360 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
3361 UNOP_CHMIN>: Remove opcodes.
3362
ae4d0c03
PM
33632010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
3364
3365 * dwarf2read.c (read_func_scope): Do not complain for
3366 external function if bounds are not found.
3367
fa593d66
PA
33682010-06-01 Pedro Alves <pedro@codesourcery.com>
3369
3370 * NEWS: Mention gdbserver fast tracepoints support.
3371
cd44747c
PM
33722010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
3373
3374 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
3375 New macros.
3376 (windows_set_console_info): New function.
3377 (windows_create_inferior): Call windows_set_console_info
3378 if NEW_CONSOLE is true.
3379 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
3380 (_initialize_loadable): Initialize GetConsoleFontSize and
3381 GetCurrentConsoleFont.
3382
f6528abd
JK
33832010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3384
3385 * Makefile.in (RDYNAMIC): New.
3386 (SFILES): Add proc-service.list.
3387 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
3388 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
3389 * config/arm/linux.mh: Likewise.
3390 * config/i386/linux.mh: Likewise.
3391 * config/i386/linux64.mh: Likewise.
3392 * config/ia64/linux.mh: Likewise.
3393 * config/m32r/linux.mh: Likewise.
3394 * config/m68k/linux.mh: Likewise.
3395 * config/mips/linux.mh: Likewise.
3396 * config/pa/linux.mh: Likewise.
3397 * config/powerpc/linux.mh: Likewise.
3398 * config/powerpc/ppc64-linux.mh: Likewise.
3399 * config/s390/s390.mh: Likewise.
3400 * config/sparc/linux.mh: Likewise.
3401 * config/sparc/linux64.mh: Likewise.
3402 * config/xtensa/linux.mh: Likewise.
3403 * configure.ac: New RDYNAMIC on native host and GCC.
3404 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
3405 * configure: Regenerate.
3406 * proc-service.list: New.
3407
ca2a87a0
JK
34082010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3409
3410 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
3411 CONTENT.
3412
1e225492
JK
34132010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3414
3415 * linux-nat.c (linux_nat_wait_1): Do not call
3416 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
3417 TARGET_WAITKIND_SIGNALLED.
3418
e802dbe0
JB
34192010-05-27 Joel Brobecker <brobecker@adacore.com>
3420
3421 * ada-lang.c (ada_inferior_data): New struct.
3422 (ada_inferior_data): New static global.
3423 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
3424 (ada_get_tsd_type): New functions.
3425 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
3426 to look the tsd type up.
3427 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
3428 event. Set ada_inferior_data.
3429
176a6961
PA
34302010-05-27 Pedro Alves <pedro@codesourcery.com>
3431
3432 * remote.c (unpack_varlen_hex): Remove forward declaration.
3433 (remote_console_output): Make static, and add forward declaration.
3434 * remote.h: Drop FIXME comment.
3435 (unpack_varlen_hex): Declare.
3436 (remote_console_output, remote_cisco_objfile_relocate)
3437 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
3438 Delete declarations.
3439 * tracepoint.c: Include "remote.h".
3440 (unpack_varlen_hex): Delete declaration.
3441
88bfdde4
TT
34422010-05-27 Tom Tromey <tromey@redhat.com>
3443
3444 * dwarf2loc.c (struct piece_closure) <refc>: New field.
3445 (allocate_piece_closure): Initialize refc.
3446 (copy_pieced_value_closure): Use refc.
3447 (free_pieced_value_closure): Likewise.
3448
8c6363cf
TT
34492010-05-27 Tom Tromey <tromey@redhat.com>
3450
3451 * arm-tdep.c (push_stack_item): 'contents' now const.
3452 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
3453 value_contents_writeable. Introduce new temporary.
3454
7ecb917e
TT
34552010-05-27 Tom Tromey <tromey@redhat.com>
3456
3457 * findcmd.c (parse_find_args): Use value_contents, not
3458 value_contents_raw.
3459
f42a0a33
TT
34602010-05-27 Tom Tromey <tromey@redhat.com>
3461
3462 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
3463 const. Use value_contents, not value_contents_writeable.
3464
12b795ad
JB
34652010-05-27 Joel Brobecker <brobecker@adacore.com>
3466
3467 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
3468 by call to value_contents.
3469
5a2e11c7
OS
34702010-05-27 Ozkan Sezer <sezeroz@gmail.com>
3471
3472 * MAINTAINERS: Add myself for write after approval privileges.
3473
ec685c5e
DE
34742010-05-26 Doug Evans <dje@google.com>
3475
0c4a4063
DE
3476 Allow python to find its files if moved from original location.
3477 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
3478 (GDB_AC_WITH_DIR): Call it.
3479 * configure.ac: Define WITH_PYTHON_PATH if we can find the
3480 python installation directory.
3481 * config.in: Regenerate.
3482 * configure: Regenerate.
3483 * defs.h (python_libdir): Declare.
3484 * main.c (python_libdir): Define.
3485 (captured_main): Initialize python_libdir.
3486 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
3487 call Py_SetProgramName to make sure python can find its libraries
3488 and modules.
3489
ec685c5e
DE
3490 * configure.ac: Try to use python's distutils to fetch compilation
3491 parameters.
3492 * configure: Regenerate.
3493 * python/python-config.py: New file.
3494
363a6e9f
OS
34952010-05-26 Ozkan Sezer <sezeroz@gmail.com>
3496
3497 * ser-tcp.c (net_open): Check error return from socket() call by its
3498 equality to -1 not by it being negative.
3499 (net_close): Likewise.
3500
dde08ee1
PA
35012010-05-26 Pedro Alves <pedro@codesourcery.com>
3502
3503 * NEWS: Mention the `qRelocInsn' feature.
3504 * gdbarch.sh (relocate_instruction): New.
3505 * amd64-tdep.c (rip_relative_offset): New.
3506 (append_insns): New.
3507 (amd64_relocate_instruction): New.
3508 (amd64_init_abi): Install it.
3509 * i386-tdep.c (append_insns): New.
3510 (i386_relocate_instruction): New.
3511 (i386_gdbarch_init): Install it.
3512 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
3513 * gdbarch.h, gdbarch.c: Regenerate.
3514
947bb88f
TT
35152010-05-26 Tom Tromey <tromey@redhat.com>
3516
3517 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
3518 (struct dwarf2_loclist_baton) <data>: Likewise.
3519 * dwarf2loc.c (find_location_expression): Constify return type.
3520 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
3521 (dwarf2_loc_desc_needs_frame): Likewise.
3522 (loclist_read_variable): Constify.
3523 (loclist_describe_location): Likewise.
3524 (loclist_tracepoint_var_ref): Likewise.
3525
0d45f56e
TT
35262010-05-25 Tom Tromey <tromey@redhat.com>
3527
3528 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
3529 (dwarf_expr_frame_base_1): Likewise.
3530 (read_pieced_value): Update.
3531 (needs_frame_frame_base): Constify.
3532 (dwarf2_tracepoint_var_loc): Likewise.
3533 (dwarf2_tracepoint_var_access): Likewise.
3534 (locexpr_describe_location_piece): Likewise.
3535 (locexpr_describe_location_1): Likewise.
3536 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
3537 Constify.
3538 (data): Now const.
3539 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
3540 (dwarf_expr_eval, read_uleb128, read_sleb128)
3541 (dwarf2_read_address): Update.
3542 * dwarf2expr.c (dwarf_expr_eval): Constify.
3543 (read_uleb128): Likewise.
3544 (read_sleb128): Likewise.
3545 (dwarf2_read_address): Likewise.
3546 (require_composition): Likewise.
3547 (execute_stack_op): Likewise.
3548 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
3549 "const gdb_byte *".
3550 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
3551 Now const.
3552 (no_get_frame_base): Constify.
3553 (execute_stack_op): Likewise.
3554 (execute_cfa_program): Likewise.
3555 (read_encoded_value): Likewise.
3556
07ca107c
DE
35572010-05-25 Doug Evans <dje@google.com>
3558
e34838f0
DE
3559 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
3560
01f69b38
DE
3561 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
3562 * event-loop.c: ... here.
3563 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
3564 `error' for clarity.
3565 (tui_getc): Pass correct value for `error' parameter to
3566 tui_readline_output.
3567
07ca107c
DE
3568 Add python gdb.GdbError and gdb.string_to_argv.
3569 * NEWS: Document them.
3570 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
3571 the exception is gdb.GdbError. Print a second traceback if there's
3572 an error computing the error message.
3573 (gdbpy_string_to_argv): New function.
3574 * python/py-utils.c (gdbpy_obj_to_string): New function.
3575 (gdbpy_exception_to_string): New function.
3576 * python/python-internal.h (gdbpy_string_to_argv): Declare.
3577 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
3578 (gdbpy_gdberror_exc): Declare.
3579 * python/python.c (gdbpy_gdberror_exc): New global.
3580 (_initialize_python): Initialize gdbpy_gdberror_exc and create
3581 gdb.GdbError.
3582 (GdbMethods): Add string_to_argv.
3583
5572ce1f
PM
35842010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3585
3586 * windows-nat.c (display_selector): Call GetLastError to give better
3587 failure explanation.
3588
acd5838a
PA
35892010-05-24 Pedro Alves <pedro@codesourcery.com>
3590
3591 * config.in: Regenerate.
3592
b26a4dcb
JK
35932010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3594
3595 Code cleanup.
3596 * target.c (push_target): Return only void. Remove the return value
3597 comment.
3598 * target.h (push_target): Return only void.
3599
f434ba03
PA
36002010-05-23 Pedro Alves <pedro@codesourcery.com>
3601
3602 Update gnulib from latest git.
3603 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3604
3605 * gnulib/memcmp.c: Removed.
3606 * gnulib/memchr.valgrind: New.
3607 * gnulib/stddef.in.h: New.
3608 * gnulib/Makefile.am: Updated.
3609 * gnulib/memchr.c: Updated.
3610 * gnulib/memmem.c: Updated.
3611 * gnulib/stdint.in.h: Updated.
3612 * gnulib/str-two-way.h: Updated.
3613 * gnulib/string.in.h: Updated.
3614 * gnulib/wchar.in.h: Updated.
3615
3616 * gnulib/extra/link-warning.h: Removed.
3617 * gnulib/extra/c++defs.h: New.
3618 * gnulib/extra/warn-on-use.h: New.
3619 * gnulib/extra/arg-nonnull.h: Updated.
3620
3621 * gnulib/m4/extensions.m4: Updated.
3622 * gnulib/m4/gnulib-cache.m4: Updated.
3623 * gnulib/m4/gnulib-common.m4: Updated.
3624 * gnulib/m4/gnulib-comp.m4: Updated.
3625 * gnulib/m4/gnulib-tool.m4: Updated.
3626 * gnulib/m4/include_next.m4: Updated.
3627 * gnulib/m4/longlong.m4: Updated.
3628 * gnulib/m4/memchr.m4: Updated.
3629 * gnulib/m4/memmem.m4: Updated.
3630 * gnulib/m4/stdint.m4: Updated.
3631 * gnulib/m4/string_h.m4: Updated.
3632 * gnulib/m4/memcmp.m4: Removed.
3633 * gnulib/m4/onceonly_2_57.m4: Removed.
3634 * gnulib/m4/00gnulib.m4: New.
3635 * gnulib/m4/mmap-anon.m4: New.
3636 * gnulib/m4/multiarch.m4: New.
3637 * gnulib/m4/onceonly.m4: New.
3638 * gnulib/m4/stddef_h.m4: New.
3639 * gnulib/m4/warn-on-use.m4: New.
3640 * gnulib/m4/wchar.m4: Removed.
3641 * gnulib/m4/wchar_h.m4: New.
3642 * gnulib/m4/wchar_t.m4: New.
3643 * gnulib/m4/wint_t.m4: New.
3644
3645 * aclocal.m4: Regenerate.
3646 * config.in: Likewise.
3647 * configure: Likewise.
3648 * gnulib/Makefile.in: Likewise.
3649
d3b1e874
TT
36502010-05-21 Tom Tromey <tromey@redhat.com>
3651
3652 * dwarf2loc.c (extract_bits_primitive): New function.
3653 (extract_bits): Likewise.
3654 (insert_bits): Likewise.
3655 (copy_bitwise): Likewise.
3656 (read_pieced_value): Do all operations in bits.
3657 (write_pieced_value): Likewise.
3658 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
3659 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
3660 Always use xrealloc to resize piece array.
3661 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
3662 <DW_OP_piece>: Update.
3663 <DW_OP_bit_piece>: New case.
3664
cb826367
TT
36652010-05-21 Tom Tromey <tromey@redhat.com>
3666
3667 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
3668 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
3669 * dwarf2expr.h (enum dwarf_value_location)
3670 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
3671 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
3672 (add_piece): Handle empty piece.
3673 (execute_stack_op) <DW_OP_piece>: Handle
3674 DWARF_VALUE_OPTIMIZED_OUT.
3675
74de6778
TT
36762010-05-21 Tom Tromey <tromey@redhat.com>
3677
3678 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
3679 evaluate_subexp, not evaluate_subexp_with_coercion.
3680
f346a30d
PM
36812010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3682
3683 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3684 attribute.
3685
afd74c5f
TT
36862010-05-21 Tom Tromey <tromey@redhat.com>
3687
3688 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
3689 offset.
3690 (write_pieced_value): Likewise.
3691
90e7c2c5
PM
36922010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3693
3694 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3695 and DW_TAG_volatile_type.
3696 (new_symbol): Likewise.
3697
8148cf8d
PM
36982010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
3699
3700 * p-valprint.c (pascal_val_print): Call get_array_bounds
3701 to obtain the number of elements in an array.
3702
3a1d4620
DE
37032010-05-19 Doug Evans <dje@google.com>
3704
0bf0f8c4
DE
3705 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
3706
3a1d4620
DE
3707 * python.c (source_python_script): Add comment.
3708 (source_python_script_for_objfile): Remove unnecessary call to
3709 gdbpy_print_stack.
3710
dc21167c
JK
37112010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3712 Sergio Durigan Junior <sergiodj@redhat.com>
3713
3714 Code cleanup.
3715 * parse.c (exp_iterate): Use operator_length wrapper function.
3716
5b4ee69b
MS
37172010-05-18 Michael Snyder <msnyder@vmware.com>
3718
3719 * ada-lang.c: White space.
3720 * ada-typeprint.c: White space.
3721 * ada-valprint.c: White space.
3722 * addrmap.c: White space.
3723 * auxv.c: White space.
3724 * ax-gdb.c: White space.
3725
e17c9e56
HZ
37262010-05-18 Hui Zhu <teawater@gmail.com>
3727
3728 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
3729 for oldfp.
3730 (inferior_call_waitpid): Move make_cleanup out of check.
3731 Check the return of waitpid.
3732 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
3733
a109c7c1
MS
37342010-05-17 Michael Snyder <msnyder@vmware.com>
3735
1c5313c5
MS
3736 * tui/tui.c: White space.
3737 * tui/tui-data.c: White space.
3738 * tui/tui-disasm.c: White space.
3739 * tui/tui-file.c: White space.
3740 * tui/tui-interp.c: White space.
3741 * tui/tui-main.c: White space.
3742 * tui/tui-out.c: White space.
3743 * tui/tui-regs.c: White space.
3744 * tui/tui-source.c: White space.
3745 * tui/tui-stack.c: White space.
3746 * tui/tui-win.c: White space.
3747 * tui/tui-winsource.c: White space.
3748
f4a14ae6
MS
3749 * procfs.c: White space.
3750
d59b6f6c
MS
3751 * python/py-auto-load.c: White space.
3752 * python/py-block.c: White space.
3753 * python/py-breakpoint.c: White space.
3754 * python/py-cmd.c: White space.
3755 * python/py-function.c: White space.
3756 * python/py-lazy-string.c: White space.
3757 * python/py-objfile.c: White space.
3758 * python/py-param.c: White space.
3759 * python/py-prettyprint.c: White space.
3760 * python/py-progspace.c: White space.
3761 * python/py-symtab.c: White space.
3762 * python/python.c: White space.
3763 * python/py-type.c: White space.
3764 * python/py-utils.c: White space.
3765 * python/py-value.c: White space.
3766
102040f0
MS
3767 * mi/mi-cmd-break.c: White space.
3768 * mi/mi-cmd-env.c: White space.
3769 * mi/mi-cmds.c: White space.
3770 * mi/mi-cmd-stack.c: White space.
3771 * mi/mi-cmd-var.c: White space.
3772 * mi/mi-console.c: White space.
3773 * mi/mi-getopt.c: White space.
3774 * mi/mi-interp.c: White space.
3775 * mi/mi-main.c: White space.
3776 * mi/mi-out.c: White space.
3777 * mi/mi-parse.c: White space.
3778
cdb27c12
MS
3779 * cli/cli-cmds.c: White space.
3780 * cli/cli-decode.c: White space.
3781 * cli/cli-dump.c: White space.
3782 * cli/cli-interp.c: White space.
3783 * cli/cli-logging.c: White space.
3784 * cli/cli-script.c: White space.
3785 * cli/cli-setshow.c: White space.
3786
a109c7c1
MS
3787 * valarith.c: White space.
3788 * valops.c: White space.
3789 * valprint.c: White space.
3790 * value.c: White space.
3791 * varobj.c: White space.
3792 * xcoffread.c: White space.
3793 * xml-support.c: White space.
3794 * xml-tdesc.c: White space.
3795
3872d37d
AS
37962010-05-17 Andreas Schwab <schwab@redhat.com>
3797
3798 PR gdb/11092
3799 * c-lang.c (c_printstr): Compute real length of NUL terminated
3800 string at first.
3801
0cce5bd9
JB
38022010-05-17 Joel Brobecker <brobecker@adacore.com>
3803
3804 * parse.c (parse_exp_in_context): When block is not NULL, use
3805 its associated language to parse the expression instead of
3806 the current_language.
3807
5f19d646
JB
38082010-05-17 Joel Brobecker <brobecker@adacore.com>
3809
3810 * jv-lang.c (java_lookup_class): Remove commented out code.
3811 (type_from_class): Likewise.
3812 (java_op_print_tab): Remove commented-out elements.
3813
28c85d6c
JB
38142010-05-17 Joel Brobecker <brobecker@adacore.com>
3815
3816 * ada-lang.c (to_fixed_range_type): The the raw index type as
3817 argument instead of the raw type name. Remove orig_type parameter.
3818 Update calls throughout.
3819 (ada_fixup_array_indexes_type): New function.
3820 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
3821 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
3822 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
3823 Remove name parameter.
3824 (print_array_type): Add call to ada_fixup_array_indexes_type.
3825 Update calls to print_range_type.
3826 (ada_print_type): Update calls to print_range_type.
3827
d09039dd
PM
38282010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3829
3830 * dwarf2read.c (read_set_type): Set type length if
3831 DW_AT_byte_size attribute is present.
3832
7a081a30
PM
38332010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3834
3835 * p-valprint.c (pascal_val_print): Handle set type if range limits
3836 are undefined but size is known.
3837
77382aee
PA
38382010-05-17 Pedro Alves <pedro@codesourcery.com>
3839
3840 * procfs.c: Reformat.
3841
433759f7
MS
38422010-05-16 Michael Snyder <msnyder@vmware.com>
3843
5d502164
MS
3844 * target.c: White space.
3845 * target-descriptions.c: White space.
3846 * target-memory.c: White space.
3847 * thread.c: White space.
3848 * top.c: White space.
3849 * tracepoint.c: White space.
3850 * trad-frame.c: White space.
3851 * tramp-frame.c: White space.
3852 * ui-file.c: White space.
3853 * ui-out.c: White space.
3854 * user-regs.c: White space.
3855 * utils.c: White space.
3856
433759f7
MS
3857 * scm-exp.c: White space.
3858 * scm-lang.c: White space.
3859 * scm-valprint.c: White space.
3860 * sentinel-frame.c: White space.
3861 * ser-base.c: White space.
3862 * ser-go32.c: White space.
3863 * serial.c: White space.
3864 * ser-mingw.c: White space.
3865 * ser-pipe.c: White space.
3866 * ser-tcp.c: White space.
3867 * ser-unix.c: White space.
3868 * solib.c: White space.
3869 * solib-darwin.c: White space.
3870 * solib-frv.c: White space.
3871 * solib-irix.c: White space.
3872 * solib-osf.c: White space.
3873 * solib-pa64.c: White space.
3874 * solib-som.c: White space.
3875 * solib-spu.c: White space.
3876 * solib-svr4.c: White space.
3877 * solib-target.c: White space.
3878 * source.c: White space.
3879 * stabsread.c: White space.
3880 * stack.c: White space.
3881 * std-regs.c: White space.
3882 * symfile.c: White space.
3883 * symmisc.c: White space.
3884 * symtab.c: White space.
3885
dd304d53
MS
38862010-05-16 Michael Snyder <msnyder@vmware.com>
3887
3888 * source.c (_initialize_source): Add "rev" as an abbreviation
3889 for the "reverse-search" command.
3890
a744cf53
MS
38912010-05-16 Michael Snyder <msnyder@vmware.com>
3892
123f5f96
MS
3893 * record.c: White space.
3894 * regcache.c: White space.
3895 * reggroups.c: White space.
3896 * remote-fileio.c: White space.
3897 * remote-m32r-sdi.c: White space.
3898 * remote-mips.c: White space.
3899 * remote-sim.c: White space.
a744cf53
MS
3900 * remote.c: White space.
3901 (process_g_packet): Remove orphan braces.
3902
b8d56208
MS
39032010-05-15 Michael Snyder <msnyder@vmware.com>
3904
ad3bbd48
MS
3905 * parse.c: White space.
3906 * p-lang.c: White space.
3907 * posix-hdep.c: White space.
3908 * printcmd.c: White space.
3909 * progspace.c: White space.
3910 * prologue-value.c: White space.
3911 * psymtab.c: White space.
3912 * p-typeprint.c: White space.
3913 * p-valprint.c: White space.
3914
5cc80db3
MS
3915 * objc-lang.c: White space.
3916 * objfiles.c: White space.
3917 * observer.c: White space.
3918 * osabi.c: White space.
3919 * osdata.c: White space.
3920
b8d56208
MS
3921 * m2-lang.c: White space.
3922 * m2-valprint.c: White space.
3923 * macrocmd.c: White space.
3924 * macroexp.c: White space.
3925 * macroscope.c: White space.
3926 * macrotab.c: White space.
3927 * main.c: White space.
3928 * maint.c: White space.
3929 * mdebugread.c: White space.
3930 * memattr.c: White space.
3931 * minsyms.c: White space.
3932 * monitor.c: White space.
3933
9a619af0
MS
39342010-05-14 Michael Snyder <msnyder@vmware.com>
3935
e0881a8e
MS
3936 * jv-lang.c: White space.
3937 * jv-typeprint.c: White space.
3938 * jv-valprint.c: White space.
3939 * language.c: White space.
3940 * libunwind-frame.c: White space.
3941 * linespec.c: White space.
3942 * linux-nat.c: White space.
3943 * linux-record.c: White space.
3944 * linux-thread-db.c: White space.
3945
abbb1732
MS
3946 * infcall.c: White space.
3947 * inf-child.c: White space.
3948 * infcmd.c: White space.
3949 * inferior.c: White space.
3950 * inf-loop.c: White space.
3951 * inflow.c: White space.
3952 * inline-frame.c: White space.
3953 * interps.c: White space.
3954
d8734c88
MS
3955 * gcore.c: White space.
3956 * gdb.c: White space.
3957 * gdbtypes.c: White space.
3958 * gnu-nat.c: White space.
3959 * gnu-v2-abi.c: White space.
3960 * gnu-v3-abi.c: White space.
3961
bb9bcb69
MS
3962 * findcmd.c: White space.
3963 * findvar.c: White space.
3964 * fork-child.c: White space.
3965 * frame-base.c: White space.
3966 * frame.c: White space.
3967 * frame-unwind.c: White space.
3968 * f-valprint.c: White space.
3969
d7f9d729
MS
3970 * elfread.c: White space.
3971 * environ.c: White space.
3972 * eval.c: White space.
3973 * event-loop.c: White space.
3974 * event-top.c: White space.
3975 * exceptions.c: White space.
3976 * exec.c: White space.
3977 * expprint.c: White space.
3978
9a619af0
MS
3979 * dbxread.c: White space.
3980 * dcache.c: White space.
3981 * disasm.c: White space.
3982 * doublest.c: White space.
3983 * dsrec.c: White space.
3984 * dummy-frame.c: White space.
3985 * dwarf2expr.c: White space.
3986 * dwarf2-frame.c: White space.
3987 * dwarf2loc.c: White space.
3988 * dwarf2read.c: White space.
3989
88d4aea7
PM
39902010-05-14 Phil Muldoon <pmuldoon@redhat.com>
3991
889bf7c5 3992 PR python/11482
88d4aea7
PM
3993
3994 * python/py-value.c (valpy_hash): New function.
3995 (value_object_type): Register valpy_hash.
3996
7a298875 39972010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 3998 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
3999
4000 * linux-fork.c (gdbthread.h): New include.
4001 (fork_info): Add parent_ptid.
4002 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4003 functions.
4004 (delete_checkpoint_command): Call inferior_call_waitpid.
4005 (checkpoint_command): Set parent_ptid.
4006
c14feecc
MS
40072010-05-13 Michael Snyder <msnyder@vmware.com>
4008
6595d32b
MS
4009 * dictionary.c: Re-indent to GNU coding standard.
4010
c5504eaf
MS
4011 * charset.c: White space.
4012 * c-lang.c: White space.
4013 * cli-out.c: White space.
4014 * coffread.c: White space.
4015 * complaints.c: White space.
4016 * completer.c: White space.
4017 * corefile.c: White space.
4018 * corelow.c: White space.
4019 * cp-abi.c: White space.
4020 * cp-namespace.c: White space.
4021 * cp-support.c: White space.
4022 * cp-valprint.c: White space.
4023 * c-typeprint.c: White space.
4024 * c-valprint.c: White space.
cc59ec59
MS
4025 * blockframe.c: White space.
4026 * breakpoint.c: White space.
4027 * buildsym.c: White space.
4028 * blockframe.c: White space.
b6de9da4 4029 * bcache.c: White space.
05c547f6
MS
4030 * gdbarch.sh: White space, add blank lines.
4031 * arch-utils.c: Ditto.
4032 * gdbarch.c: Regenerate.
1c4d3f96 4033 * frame.c: White space, add blank lines.
f89b749f
MS
4034 * stack.c: White space, add blank lines.
4035 (initialize_stack): Remove long-dead code.
c14feecc 4036
a2d33775
JK
40372010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4038
4039 Code cleanup.
4040 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4041 (locexpr_read_variable, loclist_read_variable): Update the callers.
4042
33ac96f0
JK
40432010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4044
4045 Code cleanup.
4046 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4047 Remove check of NULL returned by tag_type_to_type.
4048 (die_containing_type): Remove variable type. Remove type_die variable
4049 initialization. Remove check of NULL returned by tag_type_to_type.
4050
f5a010c0
PM
40512010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4052
4053 PR exp/11530.
4054 * gdbtypes.c (lookup_struct_elt_type): Also lookup
4055 names of unnamed structures or unions.
4056
bf701c2c
PM
40572010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4058
4059 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 4060 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
4061 find_procinfo_or_die call.
4062 (procfs_stopped_data_address): New function.
4063 (procfs_use_watchpoints): Register new watchpoint related function.
4064
d02691ef
TT
40652010-05-11 Tom Tromey <tromey@redhat.com>
4066
4067 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4068
e0627e85
MS
40692010-05-10 Michael Snyder <msnyder@vmware.com>
4070
4071 * utils.c: White space cleanup.
4072
cc73bb8c
TT
40732010-05-10 Tom Tromey <tromey@redhat.com>
4074
4075 * eval.c (ptrmath_type_p): Add 'lang' argument.
4076 (evaluate_subexp_standard): Update.
4077 (evaluate_subexp_with_coercion): Update.
4078 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4079
c02866a0
MS
40802010-05-10 Michael Snyder <msnyder@vmware.com>
4081
4082 * utils.c (do_fclose_cleanup) Restore local variable.
4083
06280d23
DE
40842010-05-09 Doug Evans <dje@google.com>
4085
4086 * record.c (init_record_core_ops): Rename record_core to record-core.
4087
fa07e785
JB
40882010-05-08 Joel Brobecker <brobecker@adacore.com>
4089
4090 Implement task switching on pa-hpux.
4091 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
4092 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
4093
4c680d1d
PM
40942010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4095
4096 * valops.c (find_overload_match): Add missing i18n markup.
4097
28e176a6
PM
40982010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4099
4100 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
4101
48cb83fd
JK
41022010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4103
4104 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
4105 list for the obconcat call.
4106 * mdebugread.c (parse_symbol): Likewise.
4107 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
4108 Likewise.
4109 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
4110 New variable ap. Remove variables len and val.
4111 * symfile.h (obconcat): Likewise for the prototype.
4112
f92adf3c
MS
41132010-05-07 Michael Snyder <msnyder@vmware.com>
4114
4115 * python/python.c (execute_gdb_command): Remove unused variables.
4116 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 4117 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
4118 Remove unused variable.
4119 * python/py-cmd.c (cmdpy_function): Remove unused variable.
4120 (cmdpy_completer): Remove unused variable.
4121 * python/py-frame.c (frapy_find_sal): Remove unused variable.
4122 * python/py-function.c (fnpy_call): Remove unused variable.
4123 * python/py-objfile.c (objfile_to_objfile_object):
4124 Remove unused variable.
4125 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 4126 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
4127 Remove unused variable.
4128 (gdbpy_default_visualizer): Remove unused variable.
4129 * python/py-progspace.c (pspace_to_pspace_object):
4130 Remove unused variable.
0407b3f1 4131 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 4132 Remove unused variable.
0407b3f1 4133 * python/py-type.c (typy_template_argument):
f92adf3c
MS
4134 Remove unused variable.
4135 * python/py-value.c (valpy_string): Remove unused variable.
4136 (convert_value_from_python): Remove unused variables.
4137
d160942f
MS
41382010-05-07 Michael Snyder <msnyder@vmware.com>
4139
4140 * valops.c (value_cast_pointers): Restore unused variable 'type1',
4141 and use it to compute variable 't1'.
4142
587542ab
JB
41432010-05-07 Joel Brobecker <brobecker@adacore.com>
4144
4145 * ada-lang.c (assign_aggregate): Remove unused variable.
4146
7322dca9
SW
41472010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
4148
4149 PR C++/7943:
4150 * valops.c (find_overload_match): Handle fsym == NULL case.
4151 Add int no_adl argument.
4152 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
4153 when appropriate.
4154 Add int no_adl argument.
4155 (find_oload_champ_namespace): Add int no_adl argument.
4156 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
4157 expression.
4158 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
4159 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
4160 Evaluate arguments and use them to perform ADL lookup.
4161 Pass no_adl argument to find_overload_match.
4162 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
4163 * cp-support.h: Added prototype for
4164 make_symbol_overload_list_namespace.
4165 * cp-support.c (make_symbol_overload_list_namespace): New function.
4166 (make_symbol_overload_list_adl_namespace): New function.
4167 (make_symbol_overload_list_adl): New function.
4168 (make_symbol_overload_list_using): Moved code to add function to
4169 overload set to make_symbol_overload_list_namespace.
4170 * c-exp.y: create UNKNOWN_CPP_NAME token.
4171 Add parse rule for ADL functions.
4172 (classify_name): Recognize an UNKNOWN_CPP_NAME.
4173
3f1f6884
JK
41742010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4175
4176 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
4177 sentinel.
4178
3caf13b4
JB
41792010-05-07 Joel Brobecker <brobecker@adacore.com>
4180
4181 Implement task switching on solaris targets.
4182 * sol-thread.c (thread_db_find_thread_from_tid)
4183 (sol_get_ada_task_ptid): New functions.
4184 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
4185
94b0dee1
PA
41862010-05-07 Pedro Alves <pedro@codesourcery.com>
4187
4188 * remote.c (remote_query_supported_append): Use reconcat.
4189 (remote_query_supported): Install a cleanup. Use reconcat.
4190
1408c251
PA
41912010-05-07 Pedro Alves <pedro@codesourcery.com>
4192
4193 * gdbarch.sh (qsupported): Delete.
4194 * gdbarch.h, gdbarch.c: Regenerate.
4195 * remote.c (remote_query_supported): Remove use of
4196 gdbarch_qsupported.
4197
f8e50cfe
SDJ
41982010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4199
4200 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
4201 function.
4202
8ea13695
MS
42032010-05-06 Michael Snyder <msnyder@vmware.com>
4204
c6913b7d
MS
4205 * xml-support.c (xinclude_start_include): Delete unused variable.
4206 (xml_process_xincludes): Delete unused variable.
4207 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
4208 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
4209 (tdesc_find_arch_register): Delete unused variable.
4210 (tdesc_use_registers): Delete unused variable.
4211 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
4212 * inferior.c (print_inferior): Delete unused variable.
4213 * record.c (record_open_1): Delete unused variable.
4214 (record_restore): Delete unused variable.
4215 (cmd_record_save): Delete unused variable.
4216 * gcore.c (derive_heap_segment): Delete unused variable.
4217 (objfile_find_memory_regions): Use unused variable.
4218 * jit.c (jit_inferior_init): Delete unused variable.
4219 * progspace.c (clone_program_space): Delete unused variable.
4220 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
4221
4222 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
4223 Delete unused variable.
4224 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
4225 * cp-support.c (mangled_name_to_comp): Delete unused variable.
4226 (method_name_from_physname): Delete unused variable.
4227 (cp_func_name): Delete unused variable.
4228 (cp_validate_operator): Delete unused variable.
0407b3f1 4229 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 4230 Delete unused variable.
0407b3f1 4231 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
4232 Delete unused variable.
4233 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
4234
1be757cf
MS
4235 * serial.c (serial_for_fd): Delete unused variable.
4236 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
4237 * top.c (execute_command): Delete unused variable.
4238 (init_main): Delete unused variable.
4239 * utils.c (do_fclose_cleanup): Delete unused variable.
4240 (do_all_inferior_continuations): Delete unused variable.
4241 (initialize_utils): Delete unused variable.
4242 (internal_problem_mode): Delete unused global.
4243 * frame.c (get_prev_frame): Delete unused global.
4244 (get_frame_locals_address): Delete unused global.
4245 (get_frame_args_address): Delete unused global.
4246
9216103f
MS
4247 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
4248 (pascal_type_print_varspec_prefix): Delete unused variable.
4249 * f-typeprint.c (f_type_print_base): Delete unused variable.
4250 (f_type_print_varspec_suffix): Delete unused variable.
4251 * m2-typeprint.c (m2_print_type): Delete unused variable.
4252 (m2_long_set): Delete unused variable.
4253 * ada-valprint.c (ada_val_print_1): Delete unused variable.
4254 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 4255 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
4256 Delete unused variable.
4257 (f77_create_arrayprint_offset_tbl): Delete unused variable.
4258 * m2-valprint.c (m2_val_print): Delete unused variable.
4259
34fa1d9d
MS
4260 * ui-out.c (ui_out_field_int): Delete unused variable.
4261 (ui_out_field_fmt_int): Delete unused variable.
4262 * varobj.c (varobj_list_children): Delete unused variable.
4263 (varobj_set_value): Delete unused variable.
4264 (install_new_value_visualizer): Delete unused variable.
4265 (varobj_set_visualizer): Delete unused variable.
4266 (varobj_update): Delete unused variable.
4267 (varobj_editable_p): Delete unused variable.
4268 (c_value_of_root): Delete unused variable.
4269 (cplus_describe_child): Delete unused variable.
4270
b5385fc0
MS
4271 * ada-lang.c (add_defn_to_vec): Delete unused variable.
4272 (decode_constrained_packed_array_type): Delete unused variable.
4273 (add_defn_to_vec): Delete unused variable.
4274 (symbol_completion_match): Delete unused variable.
4275 (value_tag_from_contents_and_address): Delete unused variable.
4276 (ada_evaluate_subexp): Delete unused variable.
4277 * c-lang.c (classify_type): Delete unused variable.
4278 * f-lang.c (f_printstr): Delete unused variable.
4279 * objc-lang.c (objc_printstr): Delete unused variable.
4280 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
4281 * jv-lang.c (type_from_class): ifdef unused variable.
4282 (java_class_name_from_physname): Delete unused variable.
4283 * m2-lang.c (m2_printstr): Delete unused variable.
4284
4fc06681
MS
4285 * objfiles.c (objfile_relocate): Delete unused variable.
4286 * maint.c (_initialize_maint_cmds): Delete unused variable.
4287 * demangle.c (_initialize_demangler): Delete unused variable.
4288 * corefile.c (reopen_exec_file): Delete unused variable.
4289 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
4290 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
4291
6b4398f7
MS
4292 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
4293 * memattr.c (mem_delete): Delete unused variable.
4294 (invalidate_target_mem_regions): Delete unused variable.
4295 * mem-break.c (default_memory_insert_breakpoint):
4296 Delete unused variable.
4297 * target.c (target_get_osdata): Delete unused variable.
4298 * parse.c (length_of_subexp): Delete unused variable.
4299 (prefixify_subexp): Delete unused variable.
4300 (exp_iterate): Delete unused variable.
4301 * reverse.c (delete_bookmark_command): Delete unused variable.
4302
308d96ed
MS
4303 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
4304 * macroexp.c (gather_arguments): Delete unused variable.
4305 (substitute_args): Delete unused variable.
4306 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
4307 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
4308 (_initialize_gdbarch): Delete unused variable.
4309 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 4310 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
4311 Delete unused variable.
4312 (_initialize_gdbarch_utils): Delete unused variable.
4313 * gdbtypes.c (make_cv_type): Delete unused variable.
4314 (make_type_with_address_space): Delete unused variable.
4315
167e4384
MS
4316 * linespec.c (decode_compound): Delete unused variable.
4317 * dictionary.c (iterator_next_hashed): Delete unused variable.
4318 * infcall.c (call_function_by_hand): Delete unused variable.
4319 * infcmd.c (step_1): Delete unused variable.
4320 (registers_info): Delete unused variable.
4321 (attach_command): Delete unused variable.
4322 * infrun.c (follow_exec): Delete unused variable.
4323 (handle_step_into_function_backwards): Delete unused variable.
4324 (_initialize_infrun): Delete unused variable.
4325 * stack.c (parse_frame_specification_1): Delete unused variable.
4326 (frame_info): Delete unused variable.
4327 (backtrace_command_1): Delete unused variable.
4328 (catch_info): Delete unused variable.
4329
8f78b329
MS
4330 * eval.c (evaluate_subexp_standard): Delete unused variable.
4331 * valops.c (value_cast_pointers): Delete unused variable.
4332 (value_dynamic_cast): Delete unused variable.
4333 (value_array): Delete unused variable.
4334 (find_overload_match): Delete unused variable.
4335 * valarith.c (value_subscript): Delete unused variable.
4336 (value_binop): Delete unused variable.
4337 * valprint.c (_initialize_valprint): Delete unused variable.
4338 * printcmd.c (print_command_1): Delete unused variable.
4339 (address_info): Delete unused variable.
4340 (printf_command): Delete unused variable.
4341
8ea13695
MS
4342 * auxv.c (target_auxv_search): Delete unused variable.
4343 * blockframe.c (get_frame_block): Delete unused variable.
4344 * regcache.c (regcache_cpy): Delete unused variable.
4345 (regcache_cpy_no_passthrough): Delete unused variable.
4346 * charset.c (wchar_iterate): Delete unused variable.
4347 (find_charset_names): Delete unused variable.
4348 (_initialize_charset): Delete unused variable.
0407b3f1 4349 * disasm.c (do_mixed_source_and_assembly):
8ea13695 4350 Delete unused variable.
0407b3f1 4351 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
4352 Delete unused variable.
4353 (set_substitute_path_command): Delete unused variable.
4354 * value.c (preserve_values): Delete unused variable.
4355 (value_from_double): Delete unused variable.
4356
afe38095
MS
43572010-05-05 Michael Snyder <msnyder@vmware.com>
4358
952a6d41
MS
4359 * psymtab.c (lookup_partial_symbol): Delete unused variable.
4360 (find_last_source_symtab_from_partial): Delete unused variable.
4361 * symfile.c (place_section): Delete unused variable.
4362 (default_symfile_offsets): Delete unused variable.
4363 (get_debug_link_info): Delete unused variable.
4364 (find_separate_debug_file_by_debuglink): Delete unused variable.
4365 (add_symbol_file_command): Delete unused variable.
4366 (symfile_find_segment_sections): Delete unused variable.
4367 * symmisc.c (free_symtab): Delete unused variable.
4368 (dump_symtab_1): Delete unused variable.
4369 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
4370 (find_pc_sect_symtab): Delete unused variable.
4371 (skip_prologue_using_lineinfo): Delete unused variable.
4372 (sources_info): Delete unused variable.
4373 (completion_list_add_name): Delete unused variable.
4374 (expand_line_sal): Delete unused variable.
4375
0407b3f1 4376 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
4377 Delete unused variables.
4378 (insert_catchpoint): Delete unused variable.
4379 (update_watchpoint): Delete unused variable.
4380 (insert_bp_location): Delete unused variable.
4381 (insert_breakpoint_locations): Delete unused variable.
4382 (remove_breakpoint_1): Delete unused variable.
4383 (software_breakpoint_inserted_here_p): Delete unused variable.
4384 (watchpoints_triggered): Delete unused variable.
4385 (bpstat_check_watchpoint): Delete unused variable.
4386 (bpstat_stop_status): Delete unused variable.
4387 (print_one_breakpoint_location): Delete unused variable.
4388 (allocate_bp_location): Delete unused variable.
4389 (create_breakpoint): Delete unused variable.
4390 (watch_command_1): Delete unused variable.
4391 (catch_exception_command_1): Delete unused variable.
4392 (catch_ada_exception_command): Delete unused variable.
4393 (delete_breakpoint): Delete unused variable.
4394 (breakpoint_re_set_one): Delete unused variable.
4395 (do_enable_breakpoint): Delete unused variable.
4396
eda5a4d7
PA
43972010-05-06 Pedro Alves <pedro@codesourcery.com>
4398
4399 * amd64-tdep.c: Include disasm.h.
4400 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
4401 (amd64_insn_length): Moved to disasm.c and renamed.
4402 (fixup_riprel): Adjust.
4403 * disasm.c (do_ui_file_delete): New.
4404 (gdb_insn_length): New.
4405 (gdb_buffered_insn_length_fprintf)
4406 (gdb_buffered_insn_length_init_dis)
4407 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
4408 renamed.
4409 * disasm.h (gdb_insn_length): Declare.
4410 (gdb_buffered_insn_length): Declare.
4411
02357a4a
PA
44122010-05-06 Pedro Alves <pedro@codesourcery.com>
4413
4414 * remote.c (clear_threads_parsing_context): New.
4415 (remote_threads_info): Delete unused null_cleanup. Install a
4416 cleanup to clear the threads_parsing_context in case parsing
4417 throws.
4418
8c5630cb
MS
44192010-05-05 Michael Snyder <msnyder@vmware.com>
4420
4421 * c-exp.y (parse_string_or_char): Delete unused variable.
4422 (c_lex): Delete unused variable.
4423 * cp-name-parser.y (cpname_lex): Delete unused variable.
4424 * ada-exp.y (find_primitive_type): Delete unused variable.
4425 (write_var_or_type): Delete unused variable.
4426 * jv-exp.y (java_parse): Delete unused variable.
4427 (push_expression_name): Delete unused variable.
4428 * p-exp.y (pascal_lex): Delete unused variable.
4429
46c162d4
PA
44302010-05-05 Pedro Alves <pedro@codesourcery.com>
4431
4432 * remote.c (remote_threads_info): Really revert previous previous
4433 change.
4434
0043e6a5
MS
44352010-05-05 Michael Snyder <msnyder@vmware.com>
4436
fa238c03
MS
4437 * elfread.c (elf_symtab_read): Delete unused variable.
4438 (find_separate_debug_file_by_buildid): Delete unused variables.
4439 (elf_symfile_read): Delete unused variable.
4440
4441 * coffread.c (coff_symfile_read): Delete unused variables.
4442
4443 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
4444 (read_pe_exported_syms): Delete unused variable.
4445
4446 * stabsread.c (define_symbol): Delete unused variable.
4447
4448 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
4449 (process_psymtab_comp_unit): Delete unused variable.
4450 (dwarf2_build_psymtabs_hard): Delete unused variable.
4451 (load_partial_comp_unit): Delete unused variable.
4452 (create_all_comp_units): Delete unused variable.
4453 (scan_partial_symbols): Delete unused variable.
4454 (add_partial_symbol): Delete unused variable.
4455 (add_partial_namespace): Delete unused variable.
4456 (add_partial_enumeration): Delete unused variable.
4457 (load_full_comp_unit): Delete unused variable.
4458 (process_full_comp_unit): Delete unused variable.
4459 (read_file_scope): Delete unused variable.
4460 (read_type_unit_scope): Delete unused variable.
4461 (process_structure_scope): Delete unused variable.
4462 (process_enumeration_scope): Delete unused variable.
4463 (read_tag_ptr_to_member_type): Delete unused variable.
4464 (read_typedef): Delete unused variable.
4465 (read_partial_die): Delete unused variable.
4466 (decode_locdesc): Delete unused variable.
4467 (zeroed_partial_die): Delete unused global variable.
4468
0407b3f1 4469 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 4470 Delete unused variable.
0407b3f1 4471 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
4472 Delete unused variable.
4473 (tui_check_register_values): Delete unused variable.
4474 (tui_register_format): Delete unused variable.
4475 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 4476 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
4477 Delete unused variables.
4478 (tui_vertical_data_scroll): Delete unused variables.
4479
75721c66
MS
44802010-05-05 Michael Snyder <msnyder@vmware.com>
4481
c31a71f4
MS
4482 * remote.c (remote_threads_info): Revert questionable part of
4483 the previous change.
4484
44852010-05-05 Michael Snyder <msnyder@vmware.com>
4486
4487 * mi/mi-out.c (mi_table_begin): Delete unused variable.
4488 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
4489 (mi_cmd_var_list_children): Delete unused variable.
4490 (varobj_update_one): Delete unused variable.
4491 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 4492 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
4493 Delete unused variable.
4494 (mi_cmd_stack_list_variables): Delete unused variable.
4495 (list_args_or_locals): Delete unused variable.
0407b3f1 4496 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
4497 Delete unused variables.
4498 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 4499 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
4500 Delete unused variable.
4501 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
4502 (mi_cmd_interpreter_exec): Delete unused variable.
4503 (mi_on_normal_stop): Delete unused variable.
4504 * mi/mi-main.c (run_one_inferior): Delete unused variable.
4505 (print_one_inferior): Delete unused variables.
4506 (mi_execute_command): Delete unused variable.
4507 (mi_cmd_execute): Delete unused variable.
4508 (timestamp): Delete unused variable.
4509
4510 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 4511 (restore_binary_file): Delete unused variable.
c31a71f4
MS
4512 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
4513 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
4514 (recurse_read_control_structure): Delete unused variable.
4515 (script_from_file): Delete unused variable.
c31a71f4 4516 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
4517 (disassemble_command): Delete unused variable.
4518
4519 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 4520 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
4521 Delete unused variables.
4522 (encode_actions_1): Delete unused variables.
4523 (start_tracing): Delete unused variable.
4524 (trace_status_mi): Delete unused variable.
4525 (tfind_1): Delete unused variable.
4526 (trace_find_pc_command): Delete unused variable.
4527 (trace_find_line_command): Delete unused variables.
4528 (trace_find_range_command): Delete unused variables.
4529 (trace_find_outside_command): Delete unused variables.
4530 (parse_tracepoint_definition): Delete unused variables.
4531 (tfile_fetch_registers): Delete unused variable.
4532
9128a503
MS
4533 * dcache.c (dcache_init): Delete unused variable.
4534 (dcache_info): Delete unused variable.
4535
aa369b55 4536 * remote.c (remote_threads_info): Delete unused variable.
9128a503 4537 (process_stop_reply) :Delete unused variable.
aa369b55
MS
4538 (remote_get_trace_status): Delete unused variables.
4539
9e9547e4
MS
4540 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
4541 (thread_from_lwp): Delete unused variable.
4542 (enable_thread_event_reporting): Delete unused variable.
4543 (check_for_thread_db): Delete unused variables.
4544 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 4545
9e9547e4
MS
4546 * linux-fork.c (info_checkpoints_command): Delete unused variables.
4547 (checkpoint_command): Delete unused variable.
4548 (linux_fork_context): Delete unused variables.
4549
fa238c03 4550 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
4551 (linux_tracefork_child): Delete unused variable.
4552 (linux_child_follow_fork): Delete unused variable.
4553 (linux_nat_detach): Delete unused variable.
4554 (linux_handle_extended_wait): Delete unused variable.
4555 (linux_nat_has_pending_sigint): Delete unused variable.
4556 (linux_nat_find_memory_regions): Delete unused variable.
4557 (linux_nat_make_corefile_notes): Delete unused variables.
4558 (linux_nat_info_proc_cmd): Delete unused variable.
4559 (linux_proc_pending_signals): Delete unused variable.
4560 (linux_nat_stop_lwp): Delete unused variables.
4561 (_initialize_linux_nat): Delete unused variable.
4562
fa238c03 4563 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 4564
0407b3f1 4565 * linux-record.c (record_linux_system_call):
e0f069a3
MS
4566 Delete unused variables.
4567
789d24f0
MS
4568 * corelow.c (core_xfer_partial): Delete unused variables.
4569
1cd337a5 4570 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 4571 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
4572 conditionally-used variable declarations.
4573
b00e3f56
MS
4574 * solib.c (solib_find): Delete unused variable.
4575 (free_so_symbols): Delete unused variable.
4576 (info_sharedlibrary_command): Delete unused variable.
4577 (reload_shared_libraries_1): Delete unused variable.
4578 (_initialize_solib): Delete unused variable.
4579
90f62196
MS
4580 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
4581 (i386_collect_xstateregset): Delete unused variable.
4582 * i387-tdep.c (i387_print_float_info): Delete unused variable.
4583
75721c66
MS
4584 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
4585 Delete unused variable 'type'.
4586
af33db37
JB
45872010-05-05 Joel Brobecker <brobecker@adacore.com>
4588
90f62196 4589 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
4590 ada-lang.c: Remove comment mentioning these macros.
4591 * m2-exp.y: Delete commented out code.
af33db37 4592
0497f5b0
JB
45932010-05-05 Joel Brobecker <brobecker@adacore.com>
4594
4595 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
4596 for array types.
4597 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
4598
6e39997a
PM
45992010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4600
4601 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 4602 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
4603 ATTRIBUTE_UNUSED.
4604 (cleanup_kernel_helper_return): Likewise.
4605 * arm-tdep.c (copy_unmodified): Likewise.
4606 (copy_preload): Likewise.
4607 (copy_copro_load_store): Likewise.
4608 (cleanup_branch): Likewise.
4609 (copy_b_bl_blx): Likewise.
4610 (copy_bx_blx_reg): Likewise.
4611 (copy_alu_imm): Likewise.
4612 (copy_alu_reg): Likewise.
4613 (copy_alu_shifted_reg): Likewise.
4614 (cleanup_load): Likewise.
4615 (cleanup_store): Likewise.
4616 (cleanup_block_load_pc): Likewise.
4617 (cleanup_svc): Likewise.
4618 (copy_undef): Likewise.
4619 (copy_unpred): Likewise.
4620 * remote.c (register_remote_support_xml): Likewise.
4621
1412f70b
HZ
46222010-05-05 Hui Zhu <teawater@gmail.com>
4623
4624 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
4625
c4f7c687
MK
46262010-05-04 Mark Kettenis <kettenis@gnu.org>
4627
4628 * remote.c (register_remote_support_xml)
4629 (remote_query_supported_append, remote_query_supported): Add cast
4630 to NULL used as sentinel.
4631 * tracepoint.c (tvariables_info_1): Likewise.
4632 * utils.c (add_internal_problem_command): Likewise.
4633
63b4f126
MGD
46342010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4635
4636 * dwarf2loc.c (read_pieced_value, write_pieced_value,
4637 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
4638 registers gracefully.
4639
2f1bdd26
MGD
46402010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4641
0407b3f1 4642 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
4643 specific parts.
4644
e1c34c5d
PM
46452010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4646
4647 PR exp/11349.
4648 * printcmd.c (x_command): Only dereference once implicitly for
4649 TYPE_CODE_REF.
4650
ae462839
DE
46512010-05-03 Doug Evans <dje@google.com>
4652
4653 * event-loop.c (gdb_timer): Delete unused global.
4654 (create_timer): Update.
4655
1ac77ea1
JK
46562010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4657
4658 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
4659 CURRENT->DECLARATION case.
4660 * cp-support.h (struct using_direct): Provide extended comment.
4661
7c54a108
MK
46622010-05-03 Mark Kettenis <kettenis@gnu.org>
4663
4664 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
4665 HPPABSD_SIZEOF_GREGS.
4666 (HPPAOBSD_SIZEOF_FPREGS): New define.
4667 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
4668 (hppaobsd_supply_fpregset): New function.
4669 (hppaobsd_gregset): Renamed from hppabsd_gregset.
4670 (hppaobsd_fpregset): New variable.
4671 (hppaobsd_regset_from_core_section): Handle floating-point registers.
4672 (_initialize_hppabsd_tdep): Remove spurious blank line.
4673
278582cb
PM
46742010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4675
4676 PR pascal/11349.
4677 * p-valprint.c (pascal_value_print): Always dereference a value with
4678 type code TYPE_CODE_REF.
0407b3f1 4679
f0223081
PA
46802010-05-03 Pedro Alves <pedro@codesourcery.com>
4681
4682 * remote.c (remote_notice_signals): New.
4683 (remote_start_remote): In non-stop mode, update the remote end on
4684 which signals it can silently pass.
4685 (init_remote_ops): Install remote_notice_signals.
4686
c25c4a8b
JK
46872010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4688
4689 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
4690 * command.h (error_no_arg): ... here. Remove NORETURN, change
4691 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4692 * defs.h (NORETURN, ATTR_NORETURN): Remove.
4693 (perror_with_name, verror, error, error_stream, vfatal, fatal)
4694 (internal_verror, internal_error, nomem): Remove NORETURN, change
4695 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4696 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
4697 (throw_vfatal, throw_error): Remove NORETURN.
4698 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
4699 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
4700 (throw_error, deprecated_throw_reason): Remove NORETURN, change
4701 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4702 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
4703 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
4704 NORETURN.
4705 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
4706 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
4707 ATTRIBUTE_NORETURN.
4708 * target.c (tcomplain): Likewise.
4709 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
4710 ATTRIBUTE_NORETURN.
4711 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
4712 (internal_error, perror_with_name, nomem): Remove NORETURN.
4713 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
4714 ATTRIBUTE_NORETURN.
4715
a0b31db1
JK
47162010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4717
4718 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4719 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
4720 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
4721 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4722 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
4723 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4724 * complaints.h (complaint, internal_complaint): Likewise.
4725 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
4726 (ATTR_FORMAT): Remove.
4727 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
4728 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
4729 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
4730 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
4731 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
4732 (internal_error, internal_vwarning, internal_warning, warning)
4733 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4734 * disasm.c (fprintf_disasm): Likewise.
4735 * exceptions.c (throw_it): Likewise.
4736 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
4737 (throw_error): Likewise.
4738 * language.h (type_error, range_error): Likewise.
4739 * linespec.c (cplusplus_error): Likewise.
4740 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
4741 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
4742 * monitor.c (monitor_debug): Likewise.
4743 * parser-defs.h (parser_fprintf): Likewise.
4744 * serial.h (serial_printf): Likewise.
4745 * tui/tui-hooks.c (tui_query_hook): Likewise.
4746 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
4747 (uo_message): Likewise.
4748 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
4749 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
4750 Likewise.
4751 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
4752
02a45ac0
PA
47532010-05-02 Pedro Alves <pedro@codesourcery.com>
4754
4755 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
4756 (cli_table_header, cli_begin, cli_end, cli_field_int)
4757 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
4758 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
4759 Delete forward declarations.
4760 (cli_ui_out_impl): Move below the callbacks.
4761 (_initialize_cli_out): Delete.
4762
1915ef4f
PA
47632010-05-02 Pedro Alves <pedro@codesourcery.com>
4764
4765 * README: Use consistent `GDB' and `GDBserver' spellings.
4766
0dfb946f
JK
47672010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4768
4769 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
4770
4d533103
PA
47712010-05-01 Pedro Alves <pedro@codesourcery.com>
4772
4773 * infrun.c (prepare_for_detach): In non-stop, context switch to
4774 the thread that got the event before handling the event.
4775
705b5767
TT
47762010-04-30 Tom Tromey <tromey@redhat.com>
4777
4778 * symtab.c (symbol_set_names): Fix typo.
4779
3c0ee1a4
PM
47802010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4781
4782 * python/py-param.c (parm_constants): Avoid ARI warning
4783 by adding ARI comment.
4784 (parmpy_init): Likewise.
4785
ea1fae46
PM
47862010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4787
4788 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
4789 and created type for re-use.
4790
c24d0242
PM
47912010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4792
4793 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
4794
a26d8d11
DE
47952010-04-29 Doug Evans <dje@google.com>
4796
4797 * ser-base.h (reschedule): Delete prototype.
4798 * ser-base.c (reschedule): Make static.
4799
f8624c62
MGD
48002010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4801
4802 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
4803 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 4804 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 4805 EABI.
0407b3f1 4806 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
4807 use.
4808
e66408ed
PA
48092010-04-29 Pedro Alves <pedro@codesourcery.com>
4810
4811 PR gdb/11557
4812
4813 * regcache.c (registers_changed): Rename to ...
4814 (registers_changed_ptid): ... this, and only delete register cache
4815 entries matching the ptid filter argument.
4816 (registers_changed): Reimplement on top of registers_changed_ptid.
4817 * regcache.h (registers_changed_ptid): Declare.
4818 * target.c (target_resume): Flush register caches.
4819
d7b32ed3 48202010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
4821 Tom Tromey <tromey@redhat.com>
4822 Thiago Jung Bauermann <bauerman@br.ibm.com>
4823
4824 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
4825 (SUBDIR_PYTHON_SRCS): Likewise.
4826 (py-parameter.o): New rule.
4827 * python/py-parameter.c: New file.
4828 * python/python-internal.h (gdbpy_initialize_parameter)
4829 (gdbpy_parameter, gdbpy_parameter_value)
4830 (gdbpy_parse_command_name): Declare.
4831 * python/py-cmd.c (parse_command_name): Rename to
4832 gdbpy_parse_command_name.
4833 (gdbpy_parse_command_name): Accept a starting list parameter and
4834 use over cmdlist.
4835 (cmdpy_init): Use gdbpy_parse_command_name.
4836 * python/python.c (parameter_to_python): Rename to
4837 gdbpy_parameter_to_python. Accept enum var_types and value.
4838 (gdbpy_parameter): Use gdbpy_parameter_value.
4839 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 4840
ce72ce41
MGD
48412010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4842
4843 * MAINTAINERS: Add myself for write after approval privileges.
4844
6aecb9c2
JB
48452010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
4846
4847 D language support.
4848 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
4849 (COMMON_OBS): Add d-lang.o d-valprint.o.
4850 (HFILES_NO_SRCDIR): Add d-lang.h.
4851 * NEWS: Mention D language support.
4852 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
4853 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
4854 * d-lang.c: New file.
4855 * d-lang.h: New file.
4856 * d-valprint.c: New file.
4857 * defs.h (enum language): Add language_d.
4858 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
4859 * language.c (binop_result_type, integral_type, character_type)
4860 (string_type, boolean_type, structured_type): Add language_d.
4861 * symfile.c (init_filename_language_table): Add language_d.
4862 * symtab.c: Include d-lang.h.
4863 (symbol_init_language_specific, symbol_find_demangled_name)
4864 (symbol_natural_name, lookup_symbol_in_language)
4865 (symbol_demangled_name, symbol_matches_domain): Add language_d.
4866
6f992fbf
JB
48672010-04-27 Joel Brobecker <brobecker@adacore.com>
4868
4869 * solib-svr4.c (solib_svr4_r_map): Expand function description.
4870
dde59185
JB
48712010-04-27 Joel Brobecker <brobecker@adacore.com>
4872
4873 * symfile.c (init_filename_language_table): Register .dg files
4874 with language_ada.
4875
d09ce91e
JB
48762010-04-27 Joel Brobecker <brobecker@adacore.com>
4877
4878 * gdbtypes.h (struct main_type): Expand comment about target_type
4879 field.
4880
67f1675e
JB
48812010-04-27 Pedro Alves <pedro@codesourcery.com>
4882 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
4883
4884 * symfile.c (reread_symbols): Also search for file in libraries.
4885 Update comment.
4886
dfd0fe27
JB
48872010-04-27 Joel Brobecker <brobecker@adacore.com>
4888
4889 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
4890 in terms of configuration.
4891
0133421a
JK
48922010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4893
4894 * objfiles.c: Include solist.h.
4895 (free_all_objfiles): New variable so. Check stale solist objfiles.
4896 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
4897 and no_shared_libraries.
4898
e78f4312
JB
48992010-04-27 Joel Brobecker <brobecker@adacore.com>
4900
4901 ARI warning fix.
4902 * python/py-auto-load.c (source_section_scripts): Remove trailing
4903 new-line in i18n string.
4904
9214d371
DE
49052010-04-26 Doug Evans <dje@google.com>
4906
4907 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
4908
3f172e24
TT
49092010-04-26 Tom Tromey <tromey@redhat.com>
4910
4911 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
4912 command list.
4913
e790e06e
PM
49142010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4915
4916 Removal of config/i386/nm-i386sol2.h native configuration file.
4917 * config/i386/nm-i386sol2.h: Remove file.
4918 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
4919 * config/i386/sol2-64.mh: Idem.
88562582
PM
4920 * config/djgpp/fnchange.lst: Remove reference to that file.
4921 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 4922
b7da9e9f
PM
49232010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4924
4925 PR breakpoints/11531.
4926 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
4927 macro definition and related comment.
4928 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
4929 (resume): Remove code and comment related to this macro.
4930
72f6eb52
JK
49312010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4932
4933 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
4934 Fix whitespace.
4935
ab38a727
PA
49362010-04-24 Pedro Alves <pedro@codesourcery.com>
4937
4938 * defs.h: Adjust comment.
4939 * filesystem.h, filesystem.c: New files.
4940 * Makefile.in (SFILES): Add filesystem.c.
4941 (COMMON_OBS): Add filesystem.o.
4942 * solib.c (solib_find): Handle DOS-based filesystems. Handle
4943 different target and host path flavours.
4944 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4945 has_dos_based_file_system on the gdbarch.
4946 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
4947 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
4948 * i386-tdep.c (i386_go32_init_abi): Ditto.
4949 * gdbarch.sh (has_dos_based_file_system): New.
4950 * gdbarch.h, gdbarch.c: Regenerate.
4951 * NEWS: Mention improved support for remote targets with DOS-based
4952 filesystems. Mention new `set/show target-file-system-kind'
4953 commands.
4954
35c9c7ba
SS
49552010-04-23 Stan Shebs <stan@codesourcery.com>
4956
4957 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
4958 comments.
4959 (struct agent_reqs): Remove.
4960 (ax_reg_mask): Declare.
4961 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
4962 (free_agent_expr): Free reg_mask.
4963 (ax_print): Add scope and register mask info.
4964 (ax_reqs): Remove agent_reqs argument, use agent expression
4965 fields, and move part of register mask computation to...
4966 (ax_reg_mask): New function.
4967 * ax-gdb.c (gen_trace_static_fields): Call it.
4968 (gen_traced_pop): Ditto.
4969 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
4970 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
4971 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
4972 (gen_eval_for_expr): Ditto, and require an rvalue.
4973 (agent_command): Call ax_reqs.
4974 (agent_eval_command): Ditto.
4975 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
4976 (validate_action_line): Ditto.
4977 (collect_symbol): Ditto.
4978 (encode_actions_1): Ditto.
4979
492928e4
JK
49802010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
4981 Paul Pluzhnikov <ppluzhnikov@google.com>
4982 Jan Kratochvil <jan.kratochvil@redhat.com>
4983
4984 Fix deadlock on looped list of loaded shared objects.
4985 * solib-svr4.c (LM_PREV): New function.
4986 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
4987 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
4988 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
4989 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
4990
66d09542
DE
49912010-04-23 Doug Evans <dje@google.com>
4992
88a1906b
DE
4993 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
4994 python.
4995 * configure: Regenerate.
4996 * main.c: #include "python/python.h".
4997 (captured_main): Defer loading auto-loaded scripts until after
4998 local_gdbinit has been sourced.
4999 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5000 (load_auto_scripts_for_objfile): New function.
5001 (auto_load_new_objfile): Call it.
5002 * python/python.h (gdbpy_global_auto_load): Declare.
5003 (load_auto_scripts_for_objfile): Declare.
5004
66d09542
DE
5005 Add support for auto-loading scripts from .debug_gdb_scripts section.
5006 * NEWS: Add entry for .debug_gdb_scripts.
5007 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5008 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5009 (py-auto-load.o): New rule.
5010 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5011 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5012 * python/py-auto-load.c: New file.
5013 * python/python-internal.h: #include <stdio.h>.
5014 (set_python_list, show_python_list): Declare.
5015 (gdbpy_initialize_auto_load): Declare.
5016 (source_python_script_for_objfile): Declare.
5017 * python/python.c: Remove #include of observer.h.
5018 (gdbpy_auto_load): Moved to py-auto-load.c.
5019 (GDBPY_AUTO_FILENAME): Ditto.
5020 (gdbpy_new_objfile): Delete.
5021 (source_python_script_for_objfile): New function.
5022 (set_python_list, show_python_list): Make externally visible.
5023 (_initialize_python): Move "auto-load" command to py-auto-load.c
5024 and observer_attach_new_objfile to py-auto-load.c.
5025
3a48e6ff 50262010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 5027
3a48e6ff
JG
5028 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5029 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5030 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5031 New constants.
5032 (alpha_heuristic_analyze_probing_loop): New function.
5033 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5034 and handle cases when a stack probe loop is generated.
5035 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5036 (alpha_mdebug_max_frame_size_exceeded): New function.
5037 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5038 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5039 Return 0 when the maximum debuggable frame size has been exceeded.
5040
e4166a49
JB
50412010-04-23 Joel Brobecker <brobecker@adacore.com>
5042
5043 Fix ARI warning.
5044 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5045
8bd10a10
CM
50462010-04-20 Chris Moller <cmoller@redhat.com>
5047
5048 PR 10179
5049
5050 * symtab.c (rbreak_command): Added code to include a filename
5051 specification in the rbreak argument.
5052 * NEWS: Added a brief description of filename-qualified rbreak.
5053
c0201579
JK
50542010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5055
5056 Fix crashes on dangling display expressions.
5057 * ada-lang.c (ada_operator_check): New function.
5058 (ada_exp_descriptor): Fill-in the field operator_check.
5059 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
5060 * jv-lang.c (exp_descriptor_java): Likewise.
5061 * m2-lang.c (exp_descriptor_modula2): Likewise.
5062 * scm-lang.c (exp_descriptor_scm): Likewise.
5063 * parse.c (exp_descriptor_standard): Likewise.
5064 (operator_check_standard): New function.
5065 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
5066 * parser-defs.h (struct exp_descriptor): New field operator_check.
5067 (operator_check_standard, exp_uses_objfile): New declarations.
5068 * printcmd.c: Remove the inclusion of solib.h.
5069 (display_uses_solib_p): Remove the function.
5070 (clear_dangling_display_expressions): Call lookup_objfile_from_block
5071 and exp_uses_objfile instead of display_uses_solib_p.
5072 * solist.h (struct so_list) <objfile>: New comment.
5073 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5074 * symtab.h (lookup_objfile_from_block): New declaration.
5075 (struct general_symbol_info) <obj_section>: Extend the comment.
5076
6ffbb7ab
TJB
50772010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5078 Thiago Jung Bauermann <bauerman@br.ibm.com>
5079
5080 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5081 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5082 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5083 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
5084 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
5085 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
5086 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
5087 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
5088 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
5089 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
5090 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
5091 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
5092 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
5093 Define, in case <ptrace.h> doesn't provide it.
5094 (booke_debug_info): New variable.
5095 (max_slots_number): Ditto.
5096 (hw_break_tuple): New struct.
5097 (thread_points): Ditto.
5098 (ppc_threads): New variable.
5099 (PPC_DEBUG_CURRENT_VERSION): New define.
5100 (have_ptrace_new_debug_booke): New function.
5101 (ppc_linux_check_watch_resources): Renamed to ...
5102 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
5103 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
5104 (booke_cmp_hw_point): New function.
5105 (booke_find_thread_points_by_tid): Ditto.
5106 (booke_insert_point): Ditto.
5107 (booke_remove_point): Ditto.
5108 (ppc_linux_insert_hw_breakpoint): Ditto.
5109 (ppc_linux_remove_hw_breakpoint): Ditto.
5110 (get_trigger_type): Ditto.
5111 (ppc_linux_insert_watchpoint): Handle BookE processors.
5112 (ppc_linux_remove_watchpoint): Ditto.
5113 (ppc_linux_new_thread): Ditto.
5114 (ppc_linux_thread_exit): New function..
5115 (ppc_linux_stopped_data_address): Handle BookE processors.
5116 (ppc_linux_watchpoint_addr_within_range): Ditto.
5117 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
5118 to_remove_hw_breakpoint fields of the target operations struct.
5119 Add observe for the thread_exit event.
5120
be0d2954
L
51212010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5122
5123 * i386-linux-nat.c (regmap): Removed.
5124 (fetch_register): Replace regmap with
5125 i386_linux_gregset_reg_offset.
5126 (store_register): Likewise.
5127 (supply_gregset): Likewise.
5128 (fill_gregset): Likewise.
5129
5130 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
5131 global.
5132
5133 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
5134
f56dcb88
CM
51352010-04-22 Chris Moller <cmoller@redhat.com>
5136
5137 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
5138 method of popping recursion-detection stack with a method based on
5139 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
5140 the static array obstack rather than the static member obstack.)
5141
6cd6a2ae
L
51422010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5143
5144 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
5145 (_initialize_amd64_linux_nat): Replace
5146 amd64_linux_gregset64_reg_offset with
5147 amd64_linux_gregset_reg_offset.
5148
5149 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
5150 global.
5151
5152 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
5153
621791b8
PM
51542010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5155
5156 PR stabs/11479.
5157 * stabsread.c (set_length_in_type_chain): New function.
5158 (read_struct_type): Call set_length_in_type_chain function.
5159 (read_enum_type): Idem.
5160
105c2d85
SS
51612010-04-21 Stan Shebs <stan@codesourcery.com>
5162 Nathan Sidwell <nathan@codesourcery.com>
5163
5164 * tracepoint.c (trace_save): Open in binary mode.
5165
9a22f0d0
PM
51662010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5167
5168 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
5169 fields.
0407b3f1 5170 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
5171 builtin_char32 fields.
5172 * printcmd.c (decode_format): Set char size to '\0'
5173 for strings unless explicit size is given.
5174 (print_formatted): Correct calculation of NEXT_ADDRESS
5175 for 16 or 32 bit strings.
5176 (do_examine): Do not force byte size for strings.
5177 Use builtin_char16 and builtin_char32 types to display
0407b3f1 5178 16 or 32 bit-wide strings.
9a22f0d0
PM
5179 (x_command): Set LAST_SIZE to 'b' for string type.
5180
f335d1b3
L
51812010-04-21 H.J. Lu <hongjiu.lu@intel.com>
5182
5183 PR corefiles/11523
5184 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5185 XCR0 first.
5186
5187 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
5188 there is no .reg-xstate section.
5189 (i386_linux_core_read_description): Check XCR0 first.
5190
a9789a6b
MF
51912010-04-21 Mike Frysinger <vapier@gentoo.org>
5192
5193 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
5194 for len <= 8.
5195
0b66f317
CM
51962010-04-21 Chris Moller <cmoller@redhat.com>
5197
5198 PR 9167
5199 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
5200 method of popping recursion-detection stack with a method based on
5201 obstack_object_size().
0b66f317 5202
6e354e5e
PM
52032010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5204
5205 PR pascal/11492.
5206 * p-valprint.c (pascal_val_print): Fix default printing of integer
5207 arrays.
5208
57174f31
PM
52092010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5210
5211 Fix compilation warning on gcc-4.1.2.
5212 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
5213 local variable`pc' to zero.
5214
6fbc7cd8
JB
52152010-04-20 Joel Brobecker <brobecker@adacore.com>
5216
5217 Implement thread support with core files on alpha-tru64.
5218 * dec-thread.c (dec_thread_find_new_threads): New function,
5219 extracted from resync_thread_list.
5220 (resync_thread_list): Add OPS parameter. Replace extracted-out
5221 code by call to dec_thread_find_new_threads.
5222 (dec_thread_wait): Update call to resync_thread_list.
5223 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
5224
438c98a1
JB
52252010-04-20 Joel Brobecker <brobecker@adacore.com>
5226
5227 * ada-lang.c (value_pointer): New function.
5228 (make_array_descriptor): Call value_pointer to convert addresses to
5229 pointers.
5230
2971b56b
JB
52312010-04-20 Joel Brobecker <brobecker@adacore.com>
5232
5233 * rs6000-aix-tdep.c: #include exceptions.h.
5234 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
5235 while reading the memory at ADDR, then ADDR cannot be a function
5236 descriptor.
5237
be942545
JB
52382010-04-20 Joel Brobecker <brobecker@adacore.com>
5239
5240 * ada-typeprint.c (ada_print_typedef): New function.
5241 * ada-lang.h (ada_print_typedef): Add declaration.
5242 * ada-lang.c (ada_language_defn): set la_print_typdef field
5243 to ada_print_typedef.
5244
1ca8fce0
JB
52452010-04-20 Joel Brobecker <brobecker@adacore.com>
5246
5247 * procfs.c (procfs_address_to_host_pointer): Only define when used.
5248
e9ef4f39
JB
52492010-04-20 Joel Brobecker <brobecker@adacore.com>
5250
5251 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
5252 (iterate_over_mappings): Adjust function profile. Add declaration.
5253 (insert_dbx_link_bpt_in_region, info_mappings_callback):
5254 Adjust accordingly.
5255
e294797a
JB
52562010-04-20 Joel Brobecker <brobecker@adacore.com>
5257
5258 * procfs.c (solib_mappings_callback): Move function up to avoid
5259 a compiler warning.
5260
a223f1e7
JB
52612010-04-20 Joel Brobecker <brobecker@adacore.com>
5262
5263 * procfs.c (find_signalled_thread, find_stop_signal): Move
5264 these functions down to define them only when used.
5265
0c3acc09
JB
52662010-04-20 Joel Brobecker <brobecker@adacore.com>
5267
5268 * valprint.c (common_val_print): Fix the value before extracting
5269 its contents.
5270 * ada-lang.c (ada_to_fixed_value): Make this function extern.
5271 * ada-lang.h (ada_to_fixed_value): New function declaration.
5272 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
5273 to avoid code duplication and fix a bug in the handling of
5274 fixed types contents.
5275
31ef98ae
TT
52762010-04-20 Tom Tromey <tromey@redhat.com>
5277
5278 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
5279 (read_partial_die): Likewise.
5280 (dwarf_attr_name): Likewise.
5281
ec31cde5 52822010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 5283
ec31cde5
CM
5284 PR 10867
5285
5286 * cp-valprint.c (global): Adding new static array recursion
5287 detection obstack.
5288 (cp_print_value_fields, cp_print_static_field): Added new static
5289 array recursion detection code.
5290
e0e0e543
MK
52912010-04-20 Mark Kettenis <kettenis@gnu.org>
5292
5293 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
5294 general-purpose register set should be 68 instead of 144.
5295 (i386_linux_sse_regset_sections): Likewise.
5296 (i386_linux_avx_regset_sections): Likewise.
5297
08922a10
SS
52982010-04-20 Stan Shebs <stan@codesourcery.com>
5299 Nathan Sidwell <nathan@codesourcery.com>
5300
5301 * dwarf2loc.c (struct axs_var_loc): New struct.
5302 (dwarf2_tracepoint_var_loc): New function.
5303 (dwarf2_tracepoint_var_access): New function.
5304 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
5305 with DW_OP_piece.
5306 (locexpr_describe_location_piece): New function.
5307 (locexpr_describe_location_1): New function.
5308 (locexpr_describe_location): Call it, update signature.
5309 (loclist_describe_location): Rewrite to loop over locations,
5310 update signature.
5311 * symtab.h (struct symbol_computed_ops): Add address to
5312 describe_location arguments, return void.
5313 * printcmd.c (address_info): Get context PC, pass to computed
5314 location description.
5315 * tracepoint.c (scope_info): Ditto.
5316 * ax-gdb.c (trace_kludge): Export.
5317
2dc7f7b3
TT
53182010-04-20 Tom Tromey <tromey@redhat.com>
5319
5320 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
5321 (struct dwarf2_cie) <segment_size>: New field.
5322 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
5323 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
5324 DW_FORM_exprloc.
5325 (read_attribute_value): Handle DW_FORM_flag_present,
5326 DW_FORM_sec_offset, DW_FORM_exprloc.
5327 (dump_die_shallow): Likewise.
5328 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
5329 (dwarf2_const_value): Handle DW_FORM_exprloc.
5330 (attr_form_is_block): Likewise.
5331 (struct line_header) <maximum_ops_per_instruction>: New field.
5332 (dwarf_decode_line_header): Set new field.
5333 (dwarf_decode_lines): Handle new field.
5334
ce4b0682
SDJ
53352010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5336
5337 * f-exp.y: Add new production to recognize the `logical*8' type.
5338 (LOGICAL_S8_KEYWORD): New token.
5339 * f-lang.c (enum f_primitive_types)
5340 <f_primitive_type_logical_s8>: New field.
5341 (f_language_arch_info): Handling `logical*8' type.
5342 (build_fortran_types): Building `logical*8' type.
5343 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
5344
ff9f22f1
DE
53452010-04-19 Doug Evans <dje@google.com>
5346
5347 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
5348 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
5349 (pipe_close): Ditto.
5350
437125bd
PM
53512010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5352
5353 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
5354
e8e6c82e
PM
53552010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5356
5357 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
5358 type to void function.
5359
4136fdd2
SS
53602010-04-19 Stan Shebs <stan@codesourcery.com>
5361 Vladimir Prus <vladimir@codesourcery.com>
5362
5363 * tracepoint.c (tfind_1): Add missing newline, report exit from
5364 tfind mode as such.
5365 * target.c (update_current_target): Make default
5366 to_trace_find return -1.
5367
0c4b2e63
MF
53682010-04-19 Mike Frysinger <vapier@gentoo.org>
5369
5370 * objc-lang.c (find_methods): Move symname check up.
5371
78076abc
PA
53722010-04-19 Pedro Alves <pedro@codesourcery.com>
5373
5374 * ada-lang.c (print_recreate_exception)
5375 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
5376 not "catch unhandled".
5377
6149aea9
PA
53782010-04-19 Pedro Alves <pedro@codesourcery.com>
5379
5380 PR breakpoints/8554.
5381
5382 Implement `save-breakpoints'.
5383
5384 * breakpoint.c (save_cmdlist): New.
5385 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
5386 to save_cmdlist.
5387 (print_recreate_catch_fork): New.
5388 (catch_fork_breakpoint_ops): Install it.
5389 (print_recreate_catch_vfork): New.
5390 (catch_vfork_breakpoint_ops): Install it.
5391 (print_recreate_catch_syscall): New.
5392 (catch_syscall_breakpoint_ops): Install it.
5393 (print_recreate_catch_exec): New.
5394 (catch_exec_breakpoint_ops): Install it.
5395 (print_recreate_exception_catchpoint): New.
5396 (gnu_v3_exception_catchpoint_ops): Install it.
5397 (save_breakpoints): New, based on tracepoint_save_command, but
5398 handle all breakpoint types.
5399 (save_breakpoints_command): New.
5400 (tracepoint_save_command): Rename to...
5401 (save_tracepoints_command): ... this, and reimplement using
5402 save_breakpoints.
5403 (save_command): New.
5404 (_initialize_breakpoints): Install the "save" command prefix.
5405 Install the "save breakpoints" command. Make "save-tracepoints" a
5406 deprecated alias for "save tracepoints".
5407 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
5408 * ada-lang.c (print_recreate_exception): New.
5409 (print_recreate_catch_exception): New.
5410 (catch_exception_breakpoint_ops): Install it.
5411 (print_recreate_catch_exception_unhandled): New.
5412 (catch_exception_unhandled_breakpoint_ops): Install it.
5413 (print_recreate_catch_assert): New.
5414 (catch_assert_breakpoint_ops): Install it.
5415
5416 * NEWS: Mention the new `save breakpoints' command. Mention the
5417 new `save tracepoints' alias and that `save-tracepoints' is now
5418 deprecated.
5419
0a8fce9a
PA
54202010-04-18 Pedro Alves <pedro@codesourcery.com>
5421
5422 PR tui/9217
5423
5424 * tui/tui-out.c: Include cli-out.h.
5425 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5426 (tui_begin, tui_end, tui_field_int, tui_field_skip)
5427 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
5428 (tui_message, tui_wrap_hint, tui_flush): Delete forward
5429 declarations.
5430 (struct ui_out_data): Rename to...
5431 (struct tui_ui_out_data): ... this. Remove `stream' and
5432 `suppress_output' fields, and inherit cli_ui_out_data.
5433 (tui_out_data): New typedef.
5434 (tui_ui_out_impl): Don't initialize fields staticaly.
5435 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5436 (tui_begin, tui_end): Delete.
5437 (tui_field_int): Adjust to delegate most work to the base type.
5438 (tui_field_skip): Delete.
5439 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
5440 delegate most work to the base type.
5441 (tui_spaces): Delete.
5442 (tui_text): Adjust to delegate most work to the base type.
5443 (tui_message): Delete.
5444 (tui_wrap_hint): Delete.
5445 (tui_flush): Delete.
5446 (out_field_fmt): Delete.
5447 (field_separator): Delete.
5448 (tui_out_new): Adjust to initialize the base type.
5449 (_initialize_tui_out): Initialize tui_ui_out_impl.
5450 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
5451 cli_ui_out_data.
5452 (cli_out_data): Adjust.
5453 (cli_ui_out_impl): Make extern.
5454 (cli_table_header, cli_field_int, cli_field_skip): Use
5455 uo_field_string instead of cli_field_string.
5456 (cli_redirect): Adjust to use cli_out_data.
5457 (cli_out_data_ctor): New.
5458 (cli_out_new): Use it.
5459 * cli-out.h (struct ui_file): Remove forward declaration.
5460 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
5461 (cli_ui_out_impl): Declare.
5462 (cli_out_data_ctor): Declare.
5463 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
5464 (uo_field_string): No longer static.
5465 (ui_out_data): Change return type to void pointer.
5466 (ui_out_new): Change `data' parameter type to void pointer.
5467 * ui-out.h (struct ui_out_data): Don't forward declare.
5468 (ui_out_data): Change return type to void pointer.
5469 (ui_out_new): Change `data' parameter type to void pointer.
5470 (uo_field_string): Declare.
5471
172240dd
PA
54722010-04-17 Pedro Alves <pedro@codesourcery.com>
5473
5474 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
5475 instead of always false.
5476
ed41462c
L
54772010-04-17 H.J. Lu <hongjiu.lu@intel.com>
5478
5479 PR corefiles/11511
5480 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
5481 orig_rax.
5482
cc60f2e3
PA
54832010-04-17 Pedro Alves <pedro@codesourcery.com>
5484
5485 * breakpoint.c (watchpoints_triggered): Use
5486 is_hardware_watchpoint.
5487 (watchpoints_triggered): Ditto.
5488 (bpstat_check_location): Use is_watchpoint and
5489 is_hardware_watchpoint.
5490 (bpstat_check_watchpoint): Use is_watchpoint and
5491 is_hardware_watchpoint.
5492 (bpstat_stop_status): Fix comment.
5493 (user_settable_breakpoint): Use is_watchpoint.
5494 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
5495 (disable_watchpoints_before_interactive_call_start): Use
5496 is_watchpoint.
5497 (enable_watchpoints_after_interactive_call_stop): Use
5498 is_watchpoint.
5499 (clear_command): Use is_watchpoint.
5500 (do_enable_breakpoint): Use is_watchpoint.
5501
cb7db0f2
MF
55022010-04-16 Mike Frysinger <vapier@gentoo.org>
5503
5504 * solib-frv.c (enable_break1_done): Delete.
5505 (enable_break2): Do not check enable_break1_done. Move the
5506 enable_break2_done setting and call to
5507 remove_solib_event_breakpoints() to the end. Return without
5508 warning when the contents of _dl_debug_addr are 0.
5509 (enable_break): Do not set enable_break1_done.
5510 (frv_clear_solib): Likewise.
5511
d77b48cf
KB
55122010-04-16 Kevin Buettner <kevinb@redhat.com>
5513
5514 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
5515 instead of an error if no PLT entry is found. Return a
5516 potentially useful result.
5517 (m32c_m16c_pointer_to_address): Add code to search for function
5518 address when no .plt entry is found.
5519
f90824dc
SS
55202010-04-16 Stan Shebs <stan@codesourcery.com>
5521
5522 * tracepoint.c (trace_variable_command): Run a cleanup.
5523
9b79b476
PM
55242010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5525
5526 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
5527
711e434b
PM
55282010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5529
5530 Support for Windows OS Thread Information Block.
5531 * NEWS: Document new feature.
5532 * remote.c (PACKET_qGetTIBAddr): New enum element.
5533 (remote_get_tib_address): New function.
5534 (init_remote_ops): Set to_get_tib_address field
5535 to remote_get_tib_address.
5536 (_initialize_remote): Add add_packet_config_cmd
5537 for PACKET_qGetTIBAddr.
5538 * target.c (update_current_target): Set default value for
5539 new to_get_tib_address field.
5540 * target.h (target_ops): New field to_get_tib_address.
5541 (target_get_tib_address): New macro.
5542 * windows-nat.c (thread_info): Add thread_local_base field.
5543 (windows_add_thread): Add tlb argument of type 'void *'.
5544 (fake_create_process): Adapt windows_add_thread call.
5545 (get_windows_debug_event): Idem.
5546 (windows_get_tib_address): New function.
5547 (init_windows_ops): Set to_get_tib_address field
5548 to remote_get_tib_address.
5549 (_initialize_windows_nat): Replace info_w32_cmdlist
5550 initialization by a call to init_w32_command_list.
5551 (info_w32_command, info_w32_cmdlist): Removed from here...
5552 to windows-tdep.c file.
5553 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 5554 (init_w32_command_list): New external function
711e434b
PM
5555 declaration.
5556 * windows-tdep.c: Add several headers.
5557 (info_w32_cmdlist): to here, made global.
5558 (thread_information_32): New struct.
5559 (thread_information_64): New struct.
5560 (TIB_NAME): New char array.
5561 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
5562 (maint_display_all_tib): New static variable.
5563 (windows_get_tlb_type): New function.
5564 (tlb_value_read, tlb_value_write): New functions.
5565 (tlb_value_funcs): New static struct.
5566 (tlb_make_value): New function.
5567 (display_one_tib): New function.
5568 (display_tib): New function.
5569 (show_maint_show_all_tib):New function.
5570 (info_w32_command): Moved from windows-nat.c.
5571 (init_w32_command_list): New function.
5572 (_initialize_windows_tdep): New function.
5573 New "maint set/show show-all-tib" command
5574 New "$_tlb" internal variable.
5575
cae3f17b
JB
55762010-04-16 Joel Brobecker <brobecker@adacore.com>
5577
5578 * tui/tui-regs.c (tui_display_register): Add comment about
5579 a couple of casts.
5580 * tui/tui-stack.c (tui_show_locator_content): Ditto.
5581
2ce6d6bf
SS
55822010-04-15 Stan Shebs <stan@codesourcery.com>
5583
5584 * frame.c: Include tracepoint.h.
5585 (get_current_frame): Allow a trace frame to be an alternate source
5586 of stack frame data.
5587 * tracepoint.c (tfind_1): Don't try to get current stack frame if
5588 it won't succeed.
5589
7e559477
PA
55902010-04-15 Pedro Alves <pedro@codesourcery.com>
5591
5592 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
5593 flags.
5594 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
5595
3f7b2faa
DE
55962010-04-15 Doug Evans <dje@google.com>
5597
fa33c3cd
DE
5598 * NEWS: Add entry for python program space support.
5599 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
5600 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
5601 (py-progspace.o): New rule.
5602 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
5603 function.
5604 (find_pretty_printer_from_progspace): New function.
5605 (find_pretty_printer_from_gdb): New function.
5606 (find_pretty_printer): Rewrite.
5607 * python/py-progspace.c: New file.
5608 * python/python-internal.h (program_space): Add forward decl.
5609 (pspace_to_pspace_object, pspy_get_printers): Declare.
5610 (gdbpy_initialize_pspace): Declare.
5611 * python/python.c: #include "progspace.h".
5612 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
5613 (_initialize_python): Call gdbpy_initialize_pspace.
5614 (GdbMethods): Add current_progspace, progspaces.
5615
3f7b2faa
DE
5616 Add -s option to source command.
5617 * NEWS: Document new option.
5618 * cli/cli-cmds.c (find_and_open_script): Add function comment.
5619 Delete from_tty and cleanupp args. Split filep arg into file and
5620 full_pathp. New arg search_path.
5621 (source_script_from_stream): New function.
5622 (source_script_with_search): New function.
5623 (source_script): Rewrite.
5624 (source_command): Parse "-s" option.
5625 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
5626 * python/python.c (source_python_script): Make file arg a const char *.
5627 Don't call fclose, leave for caller.
5628 * python/python.h (source_python_script): Update.
5629
a86988f2
PA
56302010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5631 Pedro Alves <pedro@codesourcery.com>
5632
5633 Avoid rereading shared libraries that haven't changed.
5634
5635 * solib.c (free_so_symbols): New function, from ...
5636 (free_so): ... here. Call it.
5637 (solib_read_symbols): Don't warn here if symbols have already been
5638 loaded.
5639 (solib_add): Warn here instead, if a pattern was specified.
5640 (reload_shared_libraries_1): New.
5641 (reload_shared_libraries): Rewrite to not fetch the library list.
5642
e6d9b9c2
DE
56432010-04-14 Doug Evans <dje@google.com>
5644
589390d6 5645 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
5646 concatenating string to search path.
5647
516ba659
PA
56482010-04-14 Pedro Alves <pedro@codesourcery.com>
5649
5650 * objfiles.h (gdb_bfd_close_or_warn): Declare.
5651 * objfiles.c (gdb_bfd_close_or_warn): New.
5652 * corelow.c: Include objfiles.h
5653 (core_close): Use gdb_bfd_close_or_warn.
5654 * elfread.c (build_id_verify): Ditto.
5655 * exec.c (exec_close, exec_close_1): Ditto.
5656
048d532d
PA
56572010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5658 Pedro Alves <pedro@codesourcery.com>
5659
5660 Group errors for many missing shared libraries.
5661
5662 * solist.h (struct so_list): Remove from_tty.
5663 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
5664 (solib_map_sections): Take so_list argument. Return 0 if we
5665 failed to open a BFD. Add target sections here.
5666 (symbol_add_stub): Delete.
5667 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
5668 not from_tty copied from the so_list. Don't warn a second time
5669 for a missing library.
5670 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
5671 add to the section table here. Print out a single warning for all
5672 missing libraries.
5673 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
5674 flags.
5675
044c0f87
PM
56762010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5677
5678 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
5679 error/warning messages. Capitalize and use complete sentences.
5680 (blpy_block_syms_iternext): Likewise.
5681 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
5682 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
5683 (frame_info_to_frame_object, frapy_read_var)
5684 (gdbpy_frame_stop_reason_string): Likewise.
5685 * python/py-lazy-string.c (stpy_convert_to_value)
5686 (gdbpy_create_lazy_string_object): Likewise.
5687 * python/py-objfile.c (objfpy_set_printers): Likewise.
5688 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
5689 * python/python.c (parameter_to_python): Likewise.
5690 * python/py-type.c (typy_range, typy_target): Likewise.
5691 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
5692 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
5693
5694
79f283fe
PM
56952010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5696
5697 PR python/11381
5698
5699 * python/py-prettyprint.c (pretty_print_one_value): Test for
5700 Py_None.
5701 (print_string_repr): Test for Py_None. Set flags accordingly.
5702 Return value depending on return type.
5703 (print_children): Take a value indicating whether data was printed
5704 before this function was called. Alter output accordingly.
5705 (apply_val_pretty_printer): Capture return value from
5706 print_string_repr and pass to print_children.
5707
4ac5d44e
MK
57082010-04-13 Mark Kettenis <kettenis@gnu.org>
5709
e1caee70 5710 PR corefiles/11481
4ac5d44e
MK
5711 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
5712 register note sections.
5713 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
5714 New variables.
5715 (i386_linux_init_abi): Install list of supported register note
5716 sections that matches the target description.
5717
ad91cd99
PA
57182010-04-13 Pedro Alves <pedro@codesourcery.com>
5719
5720 * remote.c (remote_get_noisy_reply): Don't error out on empty
5721 replies.
5722 (remote_start_remote): Update and merge tracepoints and trace
5723 state variables as long as the target supports tracepoints.
5724 (remote_trace_init): Fix prototype.
5725 (remote_download_trace_state_variable): Validate reply.
5726 (remote_trace_set_readonly_regions): Fix prototype.
5727 (remote_trace_start): Fix prototype. Check for empty reply.
5728 (remote_get_trace_status): Small cleanup.
5729 (remote_trace_stop): Fix prototype. Check for empty reply.
5730 (remote_trace_find): Check for empty reply.
5731 (remote_save_trace_data): Validate reply.
5732 (remote_set_disconnected_tracing): Check for empty reply, and
5733 validate reply.
5734 (remote_set_circular_trace_buffer): Ditto.
5735
ae3bccd4
PM
57362010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
5737
5738 Suppress unused value warning during compilation.
5739 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
5740 calls to void.
5741 * tui/tui-stack.c (tui_show_locator_content): Likewise.
5742
523136f2
SS
57432010-04-12 Stan Shebs <stan@codesourcery.com>
5744
5745 * tracepoint.c (tfile_xfer_partial): Check read result.
5746
0d18d720
MF
57472010-04-12 Mike Frysinger <vapier@gentoo.org>
5748
5749 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
5750 * remote-sim.c (gdbsim_files_info): Likewise.
5751
3b273a55
RE
57522010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5753
5754 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
5755 * arm-linux-nat.c (arm_linux_vfp_register_count): New
5756 variable.
5757 (fetch_vfp_registers): New function to fetch VFP registers.
5758 (store_vfp_registers): New function to store VFP registers.
5759 (arm_linux_fetch_inferior_registers): Add support for VFP
5760 registers.
5761 (arm_linux_store_inferior_registers): Likewise.
5762 (arm_linux_read_description): Likewise.
5763 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
5764 until we need it.
5765
778c7095
L
57662010-04-11 H.J. Lu <hongjiu.lu@intel.com>
5767
5768 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
5769 tdep.
5770 (amd64_collect_xstateregset): Likewise.
5771
2114d44c
SS
57722010-04-09 Stan Shebs <stan@codesourcery.com>
5773
87290684
SS
5774 * tracepoint.c (trace_status_mi): Report frames created.
5775
2114d44c
SS
5776 * tracepoint.c (trace_dump_command): Include default-collect
5777 expressions.
5778
86da934b
UW
57792010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
5780
5781 * symtab.c (find_function_start_sal): Never return SAL pointing
5782 before function start address, even if line info is missing.
5783
2d6e647a 57842010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
5785
5786 * NEWS: Mention tracepoints support.
5787
a97153c7
PA
57882010-04-09 Pedro Alves <pedro@codesourcery.com>
5789
5790 * tracepoint.c (trace_status_mi): Report disconnected tracing and
5791 circular trace buffer statuses.
5792
7a66d603
JK
57932010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5794
5795 * config/djgpp/fnchange.lst: Fix typo in translations for
5796 symbol-without-target_section.exp and symbol-without-target_section.c.
5797
2566ad2d
PA
57982010-04-09 Pedro Alves <pedro@codesourcery.com>
5799
5800 * breakpoint.c (condition_command): Pass condition expression to
5801 set_breakpoint_condition stripped from breakpoint number.
5802
adc36818
PM
58032010-04-09 Phil Muldoon <pmuldoon@redhat.com>
5804 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 5805 Tom Tromey <tromey@redhat.com>
adc36818
PM
5806
5807 * breakpoint.c (condition_command): Simplify. Move condition
5808 setting code to ...
5809 (set_breakpoint_condition): ... here. New function.
5810 * breakpoint.h (set_breakpoint_condition): Declare.
5811 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
5812 (SUBDIR_PYTHON_SRCS): Likewise.
5813 (py-breakpoint.o): New rule.
5814 * python/py-breakpoint.c: New file.
5815 * python/python-internal.h (gdbpy_breakpoints)
5816 (gdbpy_initialize_breakpoints): Declare.
5817 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
5818
219f2f23
PA
58192010-04-09 Pedro Alves <pedro@codesourcery.com>
5820
5821 * regformats/regdat.sh: Include server.h. Don't include
5822 regcache.h.
5823
33da3f1c
SS
58242010-04-08 Stan Shebs <stan@codesourcery.com>
5825 Pedro Alves <pedro@codesourcery.com>
5826
5827 * tracepoint.h (struct trace_status): New fields disconnected_tracing
5828 and circular_buffer.
5829 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
5830 * tracepoint.c (trace_status_command): Display target's status for
5831 disconnected tracing and circular buffer.
5832 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
5833 query for non-disconnected-tracing case, remove the stop_tracing
5834 call.
5835 (tfile_open): Clear disconnected and circular buffer status.
5836 (trace_save): Save disconnected and circular buffer status.
5837 (parse_trace_status): Parse disconnected and circular buffer status,
5838 also recognize disconnected as a stop reason.
5839 * remote.c (remote_set_disconnected_tracing): Only set
5840 QTDisconnected if the remote end supports disconnected tracing.
5841 Warn otherwise, if trying to enable disconnected tracing.
5842 * infcmd.c (detach_command): Update disconnect_tracing call.
5843 * cli/cli-cmds.c (quit_command): Ditto.
5844
4e4d8374
L
58452010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5846
5847 * i387-tdep.c (i387_collect_xsave): Replace abort with
5848 internal_error.
5849
ad443146
SS
58502010-04-08 Stan Shebs <stan@codesourcery.com>
5851
5852 * breakpoint.c (default_collect_info): New function.
5853 (breakpoints_info): Call it.
5854 (maintenance_info_breakpoints): Ditto.
5855 (tracepoints_info): Ditto.
5856
40936b0d
L
58572010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5858
5859 * i387-tdep.c (i387_collect_xsave): Re-indent.
5860
3a13a53b
L
58612010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5862
5863 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
5864 if HAVE_PTRACE_GETFPXREGS is defined.
5865 (i386_linux_read_description): Set have_ptrace_getfpxregs and
5866 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
5867
5868 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
5869 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
5870 if .reg-xfp section doesn't exist.
5871 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
5872
5873 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
5874
5875 * i386-tdep.c: Include "features/i386/i386-mmx.c".
5876 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
5877 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
5878 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
5879 (i386_gdbarch_init): Update comments.
5880 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
5881
5882 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
5883
5884 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
5885
5886 * features/Makefile (i386/i386-mmx-expedite): New.
5887 (i386/i386-mmx-linux-expedite): Likewise.
5888 ($(outdir)/i386/i386-mmx.dat): Likewise.
5889 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
5890
5891 * features/i386/i386-mmx-linux.c: New.
5892 * features/i386/i386-mmx-linux.xml: Likewise.
5893 * features/i386/i386-mmx.c: Likewise.
5894 * features/i386/i386-mmx.xml: Likewise.
5895 * regformats/i386/i386-mmx-linux.dat: Likewise.
5896 * regformats/i386/i386-mmx.dat: Likewise.
5897
5898 * features/Makefile (WHICH): Add i386/i386-mmx and
5899 i386/i386-mmx-linux.
5900
08001717
DE
59012010-04-08 Doug Evans <dje@google.com>
5902
5903 * source.c (openp): Skip $cdir in PATH.
5904
fff5cc64
PM
59052010-04-08 Phil Muldoon <pmuldoon@redhat.com>
5906
5907 PR python/11417
fff5cc64 5908 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
5909 a NULL address.
5910 (gdbpy_create_lazy_string_object): Allow strings with a NULL
5911 address and a zero length.
fff5cc64 5912
f8c4f480
HZ
59132010-04-08 Hui Zhu <teawater@gmail.com>
5914
5915 * i386-tdep.c (i386_process_record): Add support for insn
5916 rdtsc.
5917
eb5cda86
DE
59182010-04-07 Doug Evans <dje@google.com>
5919
5920 * python/python.c (source_python_script): Use ensure_python_env
5921 to prepare environment for script.
5922
a055a187
L
59232010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5924
5925 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
5926 <sys/uio.h> and "i386-xstate.h".
5927 (PTRACE_GETREGSET): New.
5928 (PTRACE_SETREGSET): Likewise.
5929 (have_ptrace_getregset): Likewise.
5930 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
5931 registers.
5932 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
5933 registers.
5934 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
5935 (amd64_linux_store_inferior_registers): Likewise.
5936 (amd64_linux_read_description): Check and enable AVX target
5937 descriptions.
5938
5939 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
5940 and "features/i386/amd64-avx-linux.c".
5941 (amd64_linux_regset_sections): New.
5942 (amd64_linux_core_read_description): Check and enable AVX
5943 target description.
5944 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
5945 set_gdbarch_core_regset_sections.
5946 (_initialize_amd64_linux_tdep): Call
5947 initialize_tdesc_amd64_avx_linux.
5948
5949 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
5950 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
5951 (tdesc_amd64_avx_linux): New.
5952 (amd64_linux_update_xstateregset): Likewise.
5953
5954 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
5955 (amd64_ymm_names): New.
5956 (amd64_ymmh_names): Likewise.
5957 (amd64_register_name): Likewise.
5958 (amd64_supply_xstateregset): Likewise.
5959 (amd64_collect_xstateregset): Likewise.
5960 (amd64_supply_xsave): Likewise.
5961 (amd64_collect_xsave): Likewise.
5962 (AMD64_NUM_REGS): Removed.
5963 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
5964 %xmmN if AVX is available.
5965 (amd64_pseudo_register_name): Support pseudo YMM registers.
5966 (amd64_regset_from_core_section): Support .reg-xstate section.
5967 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
5968 and ymm0h_regnum. Call set_gdbarch_register_name.
5969 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
5970
5971 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
5972 AMD64_YMM15H_REGNUM.
5973 (AMD64_NUM_REGS): New.
5974 (amd64_supply_xsave): Likewise.
5975 (amd64_collect_xsave): Likewise.
5976 (amd64_register_name): Removed.
5977 (amd64_register_type): Likewise.
5978
31aeac78
L
59792010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5980
5981 * i387-tdep.c: Include "i386-xstate.h".
5982 (XSAVE_XSTATE_BV_ADDR): New.
5983 (xsave_avxh_offset): Likewise.
5984 (XSAVE_AVXH_ADDR): Likewise.
5985 (i387_supply_xsave): Likewise.
5986 (i387_collect_xsave): Likewise.
5987
5988 * i387-tdep.h (I387_NUM_YMM_REGS): New.
5989 (I387_YMM0H_REGNUM): Likewise.
5990 (I387_YMMENDH_REGNUM): Likewise.
5991 (i387_supply_xsave): Likewise.
5992 (i387_collect_xsave): Likewise.
5993
c131fcee
L
59942010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5995
5996 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
5997 <sys/uio.h> and "i386-xstate.h".
5998 (PTRACE_GETREGSET): New.
5999 (PTRACE_SETREGSET): Likewise.
6000 (fetch_xstateregs): Likewise.
6001 (store_xstateregs): Likewise.
6002 (GETXSTATEREGS_SUPPLIES): Likewise.
6003 (regmap): Include 8 upper YMM registers.
6004 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6005 state.
6006 (i386_linux_store_inferior_registers): Likewise.
6007 (i386_linux_read_description): Check and enable AVX target
6008 descriptions.
6009
6010 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6011 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6012 (i386_linux_regset_sections): Add ".reg-xstate".
6013 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6014 (i386_linux_core_read_xcr0): New.
6015 (i386_linux_core_read_description): Check and enable AVX target
6016 description.
6017 (i386_linux_init_abi): Set xsave_xcr0_offset.
6018 (_initialize_i386_linux_tdep): Call
6019 initialize_tdesc_i386_avx_linux.
6020
6021 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6022 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6023 (i386_linux_core_read_xcr0): New.
6024 (tdesc_i386_avx_linux): Likewise.
6025 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6026
6027 * i386-tdep.c: Include "i386-xstate.h" and
6028 "features/i386/i386-avx.c".
6029 (i386_ymm_names): New.
6030 (i386_ymmh_names): Likewise.
6031 (i386_ymmh_regnum_p): Likewise.
6032 (i386_ymm_regnum_p): Likewise.
6033 (i386_xmm_regnum_p): Likewise.
6034 (i386_register_name): Likewise.
6035 (i386_ymm_type): Likewise.
6036 (i386_supply_xstateregset): Likewise.
6037 (i386_collect_xstateregset): Likewise.
6038 (i386_sse_regnum_p): Removed.
6039 (i386_pseudo_register_name): Support pseudo YMM registers.
6040 (i386_pseudo_register_type): Likewise.
6041 (i386_pseudo_register_read): Likewise.
6042 (i386_pseudo_register_write): Likewise.
6043 (i386_dbx_reg_to_regnum): Return %ymmN register number for
6044 %xmmN if AVX is available.
6045 (i386_regset_from_core_section): Support .reg-xstate section.
6046 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6047 (i386_process_record): Replace i386_sse_regnum_p with
6048 i386_xmm_regnum_p.
6049 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6050 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 6051 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
6052 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
6053 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
6054 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
6055 Set ymm0_regnum.
6056 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
6057
6058 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
6059 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
6060 i386_ymm_type.
6061 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
6062 (I386_AVX_NUM_REGS): New.
6063 (i386_xmm_regnum_p): Likewise.
6064 (i386_ymm_regnum_p): Likewise.
6065 (i386_ymmh_regnum_p): Likewise.
6066
6067 * common/i386-xstate.h: New.
6068
98adf0f3
L
60692010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6070
6071 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6072
6073 * features/Makefile (WHICH): Add i386/i386-avx,
6074 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6075 (i386/i386-avx-expedite): New.
6076 (i386/i386-avx-linux-expedite): Likewise.
6077 (i386/x86-64-avx-expedite):Likewise.
6078 (i386/x86-64-avx-linux-expedite): Likewise.
6079 ($(outdir)/i386/i386-avx.dat): New dependency.
6080 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6081 ($(outdir)/i386/x86-avx-64.dat): Likewise.
6082 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6083
6084 * features/i386/32bit-avx.xml: New.
6085 * features/i386/64bit-avx.xml: Likewise.
6086 * features/i386/i386-avx-linux.c: Likewise.
6087 * features/i386/i386-avx-linux.xml: Likewise.
6088 * features/i386/i386-avx.c: Likewise.
6089 * features/i386/i386-avx.xml: Likewise.
6090 * features/i386/x86-64-avx-linux.c: Likewise.
6091 * features/i386/x86-64-avx-linux.xml: Likewise.
6092 * features/i386/x86-64-avx.c: Likewise.
6093 * features/i386/x86-64-avx.xml: Likewise.
6094 * regformats/i386/i386-avx-linux.dat: Likewise.
6095 * regformats/i386/i386-avx.dat: Likewise.
6096 * regformats/i386/x86-64-avx-linux.dat: Likewise.
6097 * regformats/i386/x86-64-avx.dat: Likewise.
6098
05159abe
DE
60992010-04-07 Doug Evans <dje@google.com>
6100
6101 * top.c (source_file_name): Make const char *.
6102 * top.h (source_file_name): Update.
6103 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
6104 const char *.
6105 (script_from_file): Change `file' arg to const char *.
6106 * cli/cli-script.h (script_from_file): Update.
6107
96e39866
DE
61082010-04-06 Doug Evans <dje@google.com>
6109
6110 * cli/cli-cmds.c (source_command): Run cleanups.
6111
3149d8c1
SS
61122010-04-06 Stan Shebs <stan@codesourcery.com>
6113
6114 * defs.h (char_ptr): Move typedef here from...
6115 * ada-lang.c (char_ptr): Remove.
6116 * charset.c (char_ptr): Remove.
6117 * tracepoint.h (struct uploaded_string): Remove.
6118 (struct uploaded_tp): Use vectors for string arrays.
6119 * tracepoint.c (trace_save): Use vectors of actions.
6120 (parse_tracepoint_definition): Ditto.
6121 (get_uploaded_tp): Clear vectors.
6122 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
6123 (next_cmd): Change to an int.
6124 (read_next_cmd): Use vector of command strings.
6125
4cc23ede
DE
61262010-04-06 Doug Evans <dje@google.com>
6127
6128 * top.h (source_script, cd_command): Delete.
6129 * main.c: #include "cli/cli-cmds.h"
6130
bd333fb7
KB
61312010-04-06 Kevin Buettner <kevinb@redhat.com>
6132
6133 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
6134 type in bytes, not bits.
6135
ec8a089a
PM
61362010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6137
6138 * stabsread.c (define_symbol): Add support for char
6139 and string constants.
6140
2244ba2e
PM
61412010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6142
6143 Remove remaining "%ll" uses.
6144 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
6145 hex_string call.
6146 * rs6000-nat.c (rs6000_ptrace64): Idem.
6147 * solib-pa64.c (pa64_current_sos): Idem.
6148 * solib-spu.c (spu_current_sos): Idem.
6149 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
6150 plongest call.
6151 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
6152 phex (VAR, 8) call.
6153 * sh64-tdep.c (sh64_show_media_regs): Idem.
6154
fce3c1f0
SS
61552010-04-05 Stan Shebs <stan@codesourcery.com>
6156
6157 * tracepoint.c: Include gdbcore.h.
6158 (tfile_xfer_partial): Return partial results, also try reading
6159 from executable.
6160 (tfile_has_all_memory): New function.
6161 (init_tfile_ops): Use it.
6162
626ea16d
SDJ
61632010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
6164
6165 PR gdb/10736:
6166 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
6167 the changes in data-directory.
6168 (init_sysinfo): Reload the syscall XML file if the data-directory
6169 has changed.
6170
1f7ccab2
JK
61712010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6172
6173 Code cleanup.
6174 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
6175
d77f58be
SS
61762010-04-04 Stan Shebs <stan@codesourcery.com>
6177 Nathan Sidwell <nathan@codesourcery.com>
6178
6179 * breakpoint.c (breakpoint_1): Add filter argument, return number of
6180 breakpoints printed.
6181 (is_hardware_watchpoint): Make argument const.
6182 (is_watchpoint): Ditto.
6183 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
6184 use it everywhere.
6185 (breakpoints_info): Pass NULL to breakpoint_1.
6186 (maintenance_info_breakpoints): Ditto.
6187 (watchpoints_info): New function.
6188 (tracepoints_info): Use breakpoint_1 filter.
6189 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
6190 (_initialize_breakpoint): Make "info watchpoints" its own command.
6191 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
6192 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
6193
af54718e
SS
61942010-04-04 Stan Shebs <stan@codesourcery.com>
6195
6196 * tracepoint.c (tfile_fetch_registers): Add fallback case.
6197
74d1f91e
JK
61982010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6199
6200 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
6201 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
6202
91d91ceb
JK
62032010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6204
6205 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
6206 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
6207
60531b24
JK
62082010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6209
6210 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
6211 code form.
6212
a3c4230a
HZ
62132010-04-02 Hui Zhu <teawater@gmail.com>
6214
6215 * i386-tdep.c (OT_DQUAD): New enum.
6216 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
6217 SSE3, SSSE3 and SSE4.
6218
b15758fe
HZ
62192010-04-02 Hui Zhu <teawater@gmail.com>
6220
6221 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
6222 "*addr = 0".
6223
afd02f27
PA
62242010-04-02 Pedro Alves <pedro@codesourcery.com>
6225
6226 * tracepoint.c (trace_dump_actions): New, factored out from
6227 trace_dump_command, and adjusted to recurse into while-stepping's
6228 action list.
6229 (trace_dump_command): Use it.
6230
5cea2a26
PA
62312010-04-02 Pedro Alves <pedro@codesourcery.com>
6232
6233 * breakpoint.h (struct counted_command_line): Moved definition to
6234 breakpoint.c, and forward declare.
6235 (breakpoint_commands): Declare.
6236 * breakpoint.c (struct counted_command_line): Moved here.
6237 (breakpoint_commands): New.
6238 * tracepoint.c (encode_actions): Use breakpoint_commands.
6239 * remote.c (remote_download_tracepoint): Ditto.
6240
7c47795c
L
62412010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6242
6243 * remote.c (remote_parse_stop_reply): Use hex_string instead
6244 of phex_nz for error.
6245
fff87407
SS
62462010-04-01 Stan Shebs <stan@codesourcery.com>
6247 Nathan Sidwell <nathan@codesourcery.com>
6248
6249 * tracepoint.h (enum actionline_type): Remove.
6250 (validate_actionline): Change return to void.
6251 * tracepoint.c (report_agent_reqs_errors): New function.
6252 (validate_actionline): Call it, change return to void, report errors
6253 more consistently.
6254 (collect_symbol): Call report_agent_reqs_errors.
6255 (encode_actions_1): Ditto.
6256 (encode_actions): Don't expect a result from validate_actionline.
6257
615bcdef
SS
62582010-04-01 Stan Shebs <stan@codesourcery.com>
6259
6260 * tracepoint.c (trace_start_command): Confirm if trace is running.
6261 (trace_stop_command): Error if trace not running.
6262
fe01d668
L
62632010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6264
6265 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
6266 (AMD64_NUM_LOWER_BYTE_REGS): New.
6267 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
6268 (amd64_pseudo_register_write): Likewise.
6269 (amd64_init_abi): Set num_byte_regs to 20.
6270
86b17b60
PA
62712010-04-01 Pedro Alves <pedro@codesourcery.com>
6272
6273 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
6274 (prev_breakpoint_count): New.
6275 (set_breakpoint_count): Adjust.
6276 (rbreak_start_breakpoint_count): New.
6277 (start_rbreak_breakpoints): Adjust.
6278 (end_rbreak_breakpoints): Adjust.
6279 (struct commands_info) <arg>: New field.
6280 (do_map_commands_command): Tweak output to include breakpoint spec
6281 range.
6282 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
6283 ARG was empty on entry. Set INFO's arg.
6284 (create_breakpoint): Adjust.
6285
6286 * NEWS: Clarify `commands' changes.
6287
2c58c0a9
PA
62882010-04-01 Pedro Alves <pedro@codesourcery.com>
6289
6290 * tracepoint.c: Include stack.h.
6291 (struct add_local_symbols_data): New.
6292 (do_collect_symbol): New.
6293 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
6294 iterate_over_block_local_vars.
6295 * stack.c (print_block_frame_locals): Rewrite as ...
6296 (iterate_over_block_locals): ... this. Take a callback function
6297 pointer and generic data pointer, and call that instead of
6298 print_variable_and_value.
6299 (struct print_variable_and_value_data): New.
6300 (do_print_variable_and_value): New.
6301 (iterate_over_block_local_vars): New, abstracted out from
6302 print_frame_local_vars.
6303 (print_frame_local_vars): Rewrite using
6304 iterate_over_block_local_vars.
6305 (iterate_over_block_arg_vars): New, abstracted out from
6306 print_frame_arg_vars.
6307 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
6308 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
6309 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
6310
d476da0e
RE
63112010-03-31 Richard Earnshaw <rearnsha@arm.com>
6312
6313 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 6314 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
6315 PC register.
6316
8072405b
JK
63172010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6318
6319 Fix crash on reading wrong function declaration DWARF.
6320 * dwarf2read.c (read_subroutine_type): New variable void_type.
6321 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
6322 more close to their use.
6323
8bf6485c
SS
63242010-03-31 Stan Shebs <stan@codesourcery.com>
6325
6326 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 6327 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
6328 * tracepoint.c (save_trace_state_variables): New function.
6329 * tracepoint.h (save_trace_state_variables): Declare it.
6330
2ae2a0b7
PM
63312010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
6332
1a161f72 6333 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 6334
86ffb506
KS
63352010-03-30 Keith Seitz <keiths@redhat.com>
6336
6337 * c-typeprint.c (c_type_print_args): Don't print "void"
6338 for java, regardless of whether it is TYPE_PROTOTYPED.
6339 Use the passed-in language instead of current_language.
6340 (c_type_print_varspec_suffix): Use current_language instead
6341 of assuming language_c.
6342 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
6343 any return type specifier from the physname.
6344
956c2c8b
PA
63452010-03-30 Pedro Alves <pedro@codesourcery.com>
6346
6347 * tui/tui-interp.c (tui_is_toplevel): New.
6348 (tui_init): Set it.
6349 (tui_allowed_p): New.
6350 * tui/tui.c (tui_enable): Check if the TUI is allowed before
6351 enabling it.
6352 * tui/tui.h (tui_allowed_p): Declare.
6353
98e5a990
TT
63542010-03-30 Ozkan Sezer <sezeroz@gmail.com>
6355
6356 * serial.h: Include winsock2.h before windows.h.
6357
c8d5aac9
L
63582010-03-30 H.J. Lu <hongjiu.lu@intel.com>
6359
6360 * NEWS: Mention xmlRegisters= in qSupported packet.
6361
6362 * i386-tdep.c: Include "remote.h".
6363 (_initialize_i386_tdep): Call register_remote_support_xml.
6364
6365 * remote.c (remote_support_xml): New.
6366 (register_remote_support_xml): Likewise.
6367 (remote_query_supported_append): Likewise.
6368 (remote_query_supported): Support remote_support_xml.
6369
6370 * remote.h (register_remote_support_xml): New.
6371
76a2b958
SS
63722010-03-29 Stan Shebs <stan@codesourcery.com>
6373
42e08e69
SS
6374 * tracepoint.c (trace_find_line_command): Remove dead code.
6375
409873ef
SS
6376 * tracepoint.h (struct uploaded_string): New struct.
6377 (struct uploaded_tp): New fields for source strings.
6378 * breakpoint.c (this_utp, next_cmd): New globals.
6379 (read_uploaded_action): New function.
6380 (create_tracepoint_from_upload): Fill in more parts
6381 of a tracepoint.
6382 * tracepoint.c (encode_source_string): New function.
6383 (trace_save): Write out source strings, fix error checks.
6384 (parse_tracepoint_definition): Add source string parsing.
6385 * remote.c (PACKET_TracepointSource): New packet type.
6386 (remote_download_command_source): New function.
6387 (remote_download_tracepoint): Download source pieces also.
6388 (_initialize_remote): Add packet config command.
6389
a0405854
SS
6390 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
6391 expression handler.
6392
76a2b958
SS
6393 * tracepoint.c (start_tracing): Check tracepoints before sending
6394 commands to target, don't start if all tracepoints disabled.
6395
d350db38
PA
63962010-03-28 Pedro Alves <pedro@codesourcery.com>
6397
12f2d601 6398 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 6399
8b9b7ef8
SS
64002010-03-26 Stan Shebs <stan@codesourcery.com>
6401
6402 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
6403
9766ced4
SS
64042010-03-26 Tom Tromey <tromey@redhat.com>
6405
6406 * breakpoint.c (commands_command_1): Duplicate 'arg'.
6407
059acae7
UW
64082010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6409
6410 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
6411 (skip_prologue_sal): Remove local definition.
6412 (resolve_sal_pc): Remove now unnecessary code.
6413 * linespec.c (minsym_found): Call skip_prologue_sal.
6414 * symtab.c (find_function_start_pc): Remove.
6415 (find_function_start_sal): Extract prologue skipping into ...
6416 (skip_prologue_sal): ... this new function. Handle code both
6417 with and without debug info. Respect SAL's explicit_pc and
6418 explicit_line flags. Inline old find_function_start_pc.
6419 * symtab.h (find_function_start_pc): Remove.
6420 (skip_prologue_sal): Add prototype.
6421
4a811a97
UW
64222010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6423
6424 * dwarf2read.c (read_func_scope): Also scan specification DIEs
6425 for DW_TAG_imported_module children.
6426
907af001
UW
64272010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6428
6429 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
6430 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
6431 * completer.c (add_struct_fields): Fix inverted logic.
6432
dde2d684
UW
64332010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6434
6435 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
6436
a609a0c8
PA
64372010-03-26 Pedro Alves <pedro@codesourcery.com>
6438
6439 * tracepoint.c (current_trace_status): Don't make sure error_desc
6440 is non-NULL here.
6441 (parse_trace_status): Release a previous error_desc string, and
6442 set it to NULL by default. If stop reason is tracepoint_error,
6443 make sure error_desc is not left NULL.
6444
610197fd
PA
64452010-03-26 Pedro Alves <pedro@codesourcery.com>
6446
6447 * tracepoint.c (trace_save): Remove X from tracepoint error
6448 description.
6449
99b5e152
PA
64502010-03-26 Pedro Alves <pedro@codesourcery.com>
6451
6452 * tracepoint.c (parse_trace_status): Don't allow plain strings in
6453 the terror description. Don't expect an X prefix.
6454
6c28cbf2
SS
64552010-03-25 Stan Shebs <stan@codesourcery.com>
6456
6457 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
6458 (struct trace_status): New field error_desc.
6459 * tracepoint.c (stop_reason_names): Add terror.
6460 (current_trace_status): Ensure non-NULL error description.
6461 (trace_status_command): Add error report.
6462 (trace_status_mi): Ditto.
6463 (trace_save): Add special case for error description.
6464 (parse_trace_status): Add case for errors.
6465
418835cc
KS
64662010-03-25 Keith Seitz <keiths@redhat.com>
6467
6468 * dwarf2read.c (read_subroutine_type): If the compilation unit
6469 language is Java, mark any formal parameter named "this" as
6470 artificial (GCC/43521).
6471 (dwarf2_name): Add special handling for Java constructors.
6472
aa7d318d
TT
64732010-03-25 Tom Tromey <tromey@redhat.com>
6474
6475 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
6476 * infrun.c (handle_inferior_event): Change initialization of
6477 stop_stack_dummy.
6478 (handle_inferior_event): Change assignment to stop_stack_dummy.
6479 (normal_stop): Update use of stop_stack_dummy.
6480 (struct inferior_status) <stop_stack_dummy>: Change type.
6481 * inferior.h (stop_stack_dummy): Update.
6482 * infcmd.c (stop_stack_dummy): Change type.
6483 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
6484 function.
6485 (call_function_by_hand): Call set_std_terminate_breakpoint.
6486 Rewrite std::terminate handling.
6487 * breakpoint.h (enum bptype) <bp_std_terminate,
6488 bp_std_terminate_master>: New.
6489 (enum stop_stack_kind): New.
6490 (struct bpstat_what) <call_dummy>: Change type.
6491 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
6492 Declare.
6493 * breakpoint.c (create_std_terminate_master_breakpoint): New
6494 function.
6495 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
6496 Call create_std_terminate_master_breakpoint.
6497 (print_it_typical): Handle new breakpoint kinds.
6498 (bpstat_stop_status): Handle bp_std_terminate_master.
6499 (bpstat_what): Correctly set call_dummy field. Handle
6500 bp_std_terminate_master and bp_std_terminate.
6501 (print_one_breakpoint_location): Update.
6502 (allocate_bp_location): Update.
6503 (set_std_terminate_breakpoint): New function.
6504 (delete_std_terminate_breakpoint): Likewise.
6505 (create_thread_event_breakpoint): Update.
6506 (delete_command): Update.
6507 (breakpoint_re_set_one): Update.
6508 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
6509
82ccf5a5
JK
65102010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6511
6512 * symfile.c (build_section_addr_info_from_bfd): New.
6513 (build_section_addr_info_from_objfile): Base it on
6514 build_section_addr_info_from_bfd.
6515 (addrs_section_compar, addrs_section_sort): New.
6516 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
6517 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
6518 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
6519
737c4c52
MS
65202010-03-24 Michael Snyder <msnyder@localhost.localdomain>
6521
8d95cc3b 6522 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
6523 Remove unused local variable.
6524
95a42b64
TT
65252010-03-24 Tom Tromey <tromey@redhat.com>
6526
6527 PR breakpoints/9352:
6528 * NEWS: Mention changes to `commands' and `rbreak'.
6529 * symtab.c (do_end_rbreak_breakpoints): New function.
6530 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
6531 end_rbreak_breakpoints.
6532 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
6533 (set_breakpoint_count): Likewise. Clear last_was_multi.
6534 (multi_start, multi_end, last_was_multi): New globals.
6535 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
6536 functions.
6537 (struct commands_info): New
6538 (do_map_commands_command): New function.
6539 (commands_command_1): New function.
6540 (commands_command): Use it.
6541 (commands_from_control_command): Likewise.
6542 (do_delete_breakpoint): New function.
6543 (delete_command): Use it.
6544 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
6545 (do_map_disable_breakpoint): New function.
6546 (disable_command): Use it.
6547 (do_map_enable_breakpoint): New function.
6548 (enable_command): Use it.
6549 (enable_once_breakpoint): Add argument.
6550 (enable_once_command): Update.
6551 (enable_delete_breakpoint): Add argument.
6552 (enable_delete_command): Update.
6553 (break_command_really): Set last_was_multi when needed.
6554 (check_tracepoint_command): Fix formatting.
6555 (validate_commands_for_breakpoint): New function.
6556 (breakpoint_set_commands): Use it.
6557 (tracepoint_save_command): Update.
6558 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
6559 Declare.
6560
9add0f1b
TT
65612010-03-24 Tom Tromey <tromey@redhat.com>
6562
6563 * breakpoint.h (struct counted_command_line): New struct.
6564 (struct breakpoint) <commands>: Change type.
6565 (struct bpstats) <commands>: Change type.
6566 <commands_left>: New field.
6567 * breakpoint.c (alloc_counted_command_line): New function.
6568 (incref_counted_command_line): Likewise.
6569 (decref_counted_command_line): Likewise.
6570 (do_cleanup_counted_command_line): Likewise.
6571 (make_cleanup_decref_counted_command_line): Likewise.
6572 (breakpoint_set_commands): Use decref_counted_command_line and
6573 alloc_counted_command_line.
6574 (commands_command): Don't error if breakpoint commands are
6575 executing.
6576 (commands_from_control_command): Likewise.
6577 (bpstat_free): Update.
6578 (bpstat_copy): Likewise.
6579 (bpstat_clear_actions): Likewise.
6580 (bpstat_do_actions_1): Likewise.
6581 (bpstat_stop_status): Likewise.
6582 (print_one_breakpoint_location): Likewise.
6583 (delete_breakpoint): Likewise.
6584 (bpstat_alloc): Initialize new field.
6585 (tracepoint_save_command): Update.
6586 * tracepoint.c (encode_actions): Update.
6587 (trace_dump_command): Update.
6588
a6c727b2
DJ
65892010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6590
6591 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
6592 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
6593 (read_structure_type): For RealView, set TYPE_STUB on structures with
6594 no byte size and no children.
6595 (read_subroutine_type): Mark functions as prototyped by default.
6596 * symtab.c (producer_is_realview): New function.
6597 * symtab.h (expand_line_sal): Fix declaration formatting.
6598 (producer_is_realview): Declare.
6599
0d39a070
DJ
66002010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6601
6602 * arm-tdep.c (skip_prologue_function): New function.
6603 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
6604 (thumb_analyze_prologue): Document return value. Recognize more
6605 Thumb instructions, skippable calls, and some Thumb-2 instructions.
6606 Add debug output.
6607 (arm_skip_prologue): Remove call dummy check. Check the prologue
6608 for non-GNU compilers.
6609 (arm_instruction_changes_pc): New function.
6610 (arm_analyze_prologue): New function, broken out from
6611 arm_scan_prologue. Recognize more ARM instructions and skippable
6612 calls. Update comments. Handle NULL cache. Return the address
6613 of the first unrecognized instruction. Do not skip past other
6614 instructions which change control flow. Add debug output.
6615 (arm_scan_prologue): Use arm_analyze_prologue.
6616 (ARM_PC_32): Delete.
6617 (shifted_reg_val): Simplify ARM_PC_32 check.
6618
4baf5cf4
VP
66192010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6620
6621 * tracepoint.c (tvariables_info_1): Actually compute
6622 the number of rows in the result.
6623
4a5e7a5b
PA
66242010-03-24 Pedro Alves <pedro@codesourcery.com>
6625
6626 * remote.c (crc32): Constify `buf' parameter.
6627 (remote_verify_memory): New, abstracted out from...
6628 (compare_sections_command): ... this. Remove hardcoded target
6629 checks.
6630 (init_remote_ops): Install remote_verify_memory.
6631 * target.c (target_verify_memory): New.
6632 * target.h (struct target_ops) <to_verify_memory>: New field.
6633 (target_verify_memory): Declare.
6634
011aacb0
VP
66352010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6636
6637 Implement -trace-save.
6638
6639 * mi-cmds.h (mi_cmds_trace_save): Declare.
6640 * mi-cmds.c (mi_cmds): Register -trace-save.
6641 * mi/mi-main.c (mi_cmd_trace_save): New.
6642 * remote.c (remote_save_trace_data): Take const parameter.
6643 * target.h (struct target_ops::to_save_trace_data): Take
6644 const parameter.
6645 * target.c (update_current_target): Adjust to the above.
6646 * tracepoint.c (trave_save): New, extracted from
6647 (trace_save_command): ...this.
6648 (tfile_trace_find): Remove message that is unnecessary now
6649 that 'tfind' reports found frame.
6650 * tracepoint.h (trace_save): Declare.
6651
f197e0f1
VP
66522010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6653
6654 Implement -trace-find.
6655
6656 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
6657 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
6658 * mi/mi-main.c (mi_cmd_trace_find): New.
6659 * target.h (struct target_ops): Document to_trace_find.
6660 * tracepoint.h (tfind_1): Declare.
6661 * tracepoint.c (finish_tfind_command): Rename to...
6662 (tfind_1): ...this.
6663 * remote.c (remote_trace_find): Return -1 if target say
6664 there's no frame. Improve error diagnostics.
6665
40e1c229
VP
66662010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6667
6668 -trace-define-variable and -trace-list-variables.
6669
6670 * tracepoint.c (create_trace_state_variable): Make
6671 private copy of name, as opposed to assuming the
6672 pointer lives forever.
6673 (tvariables_info_1): New.
6674 (tvariables_info): Use the above.
6675 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
6676 Declare.
6677 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
6678 and -trace-list-variables.
6679 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
6680 (mi_cmd_trace_list_variables): New.
6681 * mi/mi-main.c (mi_cmd_trace_define_variable)
6682 (mi_cmd_trace_list_variables): New.
6683
9b4c786c
VP
66842010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6685
6686 Implement -break-passcount.
6687
6688 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
6689 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
6690 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
6691
f224b49d
VP
66922010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6693
6694 -trace-start/-trace-end/-trace-status.
6695
6696 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
6697 and -trace-stop.
6698 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
6699 (mi_cmd_trace_stop): Declare.
6700 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
6701 (mi_cmd_trace_stop): New.
6702 * tracepoint.c (start_tracing): New, extracted from...
6703 (trace_start_command): ...this.
6704 (trace_status_mi): New.
6705 * tracepoint.h (struct trace_status): Document
6706 stopping_tracepoint.
6707 (start_tracing, stop_tracing, trace_status_mi): Declare.
6708
6534d786
VP
67092010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6710
6711 Implement creating tracepoints with -break-insert.
6712
6713 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
6714 to mean that tracepoint should be created.
6715
51661e93
VP
67162010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6717
6718 * breakpoint.c (check_no_tracepoint_commands): Use
6719 current spelling of 'teval'.
6720
a7bdde9e
VP
67212010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6722
6723 Unify actions and commands
6724
6725 * defs.h (read_command_lines, read_command_lines_1): New
6726 parameters validator and closure.
6727 * tracepoint.h (struct action_line): Remove.
6728 * breakpoint.h (struct breakpoint): Remove the 'actions'
6729 field.
6730 * defs.h (enum command_control_type): New value
6731 while_stepping_control.
6732 (struct command_line): Add comments.
6733 * breakpoint.c (breakoint_is_tracepoint): New.
6734 (breakpoint_set_commands): For tracepoints,
6735 verify the commands are permissible.
6736 (check_tracepoint_commands): New.
6737 (commands_command): Require that each new line is validated using
6738 check_tracepoint_command, if we set commands for a tracepoint.
6739 (create_tracepoint_from_upload): Likewise.
6740 (print_one_breakpoint_location): Remove the code to print
6741 actions specifically.
6742 (tracepoint_save_command): Relay to print_command_lines.
6743 * cli/cli-script.c (process_next_line): New parameters validator
6744 and closure. Handle 'while-stepping'. Call validator if not null.
6745 (read_command_lines, read_command_lines1): Likewise.
6746 (recurse_read_control_structure): New parameters validator and
6747 closure. Handle while_stepping_control.
6748 (print_command_lines): Handle while-stepping.
6749 (get_command_line, define_command, document_command): Adjust.
6750 * remote.c (remote_download_tracepoint): Adjust.
6751 * tracepoint.c (make_cleanup_free_actions, read_actions)
6752 (free_actions, do_free_actions_cleanup): Remove.
6753 (trace_actions_command): Use read_command_lines.
6754 (validate_actionline): Use error in one place.
6755 (encode_actions_1): New, extracted from...
6756 (encode_actions): ...this. Also use cleanups for exception
6757 safety.
6758 (trace_dump_command): Adjust.
6759 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
6760 it's tracepoint.
6761
64e3cf3d
MF
67622010-03-23 Mike Frysinger <vapier@gentoo.org>
6763
6764 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
6765
52e9fde8
SS
67662010-03-22 Stan Shebs <stan@codesourcery.com>
6767
6768 * value.c (value_static_field): Be lazy about the field's value.
6769
508ccb1f
TT
67702010-03-22 Reid Kleckner <reid@kleckner.net>
6771
6772 PR gdb/11094
6773 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
6774 bp_jit_event.
6775 (disable_breakpoints_in_shlibs): Likewise.
6776
acebe513
UW
67772010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
6778
6779 * dwarf2read.c (partial_die_parent_scope): Work around buggy
6780 GCC 4.1 debug info generation (GCC PR c++/28460).
6781 (determine_prefix): Likewise.
6782
957b8b5a
DJ
67832010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
6784
6785 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
6786 get_current_arch.
6787 * tui/tui-layout.c (extract_display_start_addr): Likewise.
6788
3b11a015
SS
67892010-03-19 Stan Shebs <stan@codesourcery.com>
6790
6791 * ax-gdb.c (gen_fetch): Handle bool.
6792 (gen_usual_unary): Ditto.
6793 (gen_cast): Ditto.
6794 (gen_equal): New function.
6795 (gen_less): New function.
6796 (gen_expr_binop_rest): Call them, also return integer type from
6797 logical operations.
6798 (gen_expr): Ditto.
6799
20781792
TT
68002010-03-19 Tom Tromey <tromey@redhat.com>
6801
6802 * jv-lang.c (jv_dynamics_objfile_data_key)
6803 (jv_type_objfile_data_key): New globals.
6804 (class_symtab): Move earlier.
6805 (jv_per_objfile_free): New function.
6806 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
6807 parameter.
6808 Remove ancient #if 1.
6809 (add_class_symbol): Remove redundant declaration.
6810 (java_lookup_class): Use alloc_type, not alloc_type_arch.
6811 (java_link_class_type): Mark as static. Update.
6812 (jv_clear_object_type): New function.
6813 (set_java_object_type): Likewise.
6814 (get_java_object_type): Use set_java_object_type.
6815 (is_object_type): Likewise.
6816 (_initialize_java_language): Register new objfile keys.
6817 (get_java_class_symtab): Add 'gdbarch' parameter.
6818 (add_class_symtab_symbol): Update.
6819 (type_from_class): Update.
6820
cf3e25ca
SS
68212010-03-19 Stan Shebs <stan@codesourcery.com>
6822
8d95cc3b 6823 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 6824
f1ae44c9 68252010-03-18 Joel Brobecker <brobecker@adacore.com>
6826
6827 GDB 7.1 released.
6828
4daf5ac0
SS
68292010-03-18 Stan Shebs <stan@codesourcery.com>
6830 Pedro Alves <pedro@codesourcery.com>
6831
6832 * target.h (struct target_ops): New method
6833 to_set_circular_trace_buffer.
6834 (target_set_circular_trace_buffer): New macro.
6835 * target.c (update_current_target): Add
6836 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
6837 default behavior.
6838 * remote.c (remote_set_circular_trace_buffer): New function.
6839 (init_remote_ops): Add it to vector.
6840 * tracepoint.h (struct trace_status): New field traceframes_created,
6841 change buffer_size and buffer_free to int.
6842 * tracepoint.c (circular_trace_buffer): New global.
6843 (start_tracing): Send values of disconnected tracing and circular
6844 trace buffer settings.
6845 (set_circular_trace_buffer): New function.
6846 (parse_trace_state): Handle total space and frames created.
6847 (trace_status_command): Display total space and total frames
6848 created.
6849 (trace_save): Write out new status values.
6850 (parse_trace_status): Set traceframe_count, traceframes_created,
6851 buffer_free and buffer_size to -1 by default.
6852 (_initialize_tracepoint): New setshow for circular-trace-buffer.
6853 * NEWS: Mention the circular trace buffer option.
6854
40c549d6
TT
68552010-03-18 Tom Tromey <tromey@redhat.com>
6856
6857 * infcmd.c (finish_command_continuation): Wrap print_return_value
6858 in TRY_CATCH.
6859
e8d05480
JB
68602010-03-18 Joel Brobecker <brobecker@adacore.com>
6861
6862 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
6863 DIE has a name before creating the associated partial symbol.
6864 (read_func_scope): Emit a complaint if the subprogram does not
6865 have a name or when we can't extract the subprogram PC bounds.
6866
441b986a
UW
68672010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
6868
6869 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
6870 instead of selected frame architecture.
6871
4247603b
PA
68722010-03-18 Pedro Alves <pedro@codesourcery.com>
6873
6874 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
6875 a valid selected thread, and that it is not running.
6876 (advance_command): Ditto.
6877 (finish_command): Ditto.
6878
400c6af0
SS
68792010-03-17 Stan Shebs <stan@codesourcery.com>
6880
3a96536b
SS
6881 * ax-gdb.c (require_rvalue): Disallow non-scalars.
6882
573cda03
SS
6883 * infcall.c: Include tracepoint.h.
6884 (call_function_by_hand): Disallow calls in tfind mode.
6885 * infcmd.c: Include tracepoint.h.
6886 (ensure_not_tfind_mode): New function.
6887 (continue_1): Call it.
6888 (step_1) Ditto.
6889 (jump_command): Ditto.
6890 (signal_command): Ditto.
6891 (advance_command): Ditto.
6892 (until_command): Ditto.
6893 (finish_command): Ditto.
6894 * tracepoint.h (disconnect_or_stop_tracing): Declare.
6895
400c6af0
SS
6896 * ax-gdb.h (struct axs_value): New field optimized_out.
6897 (gen_trace_for_var): Add gdbarch argument.
6898 * ax-gdb.c (gen_trace_static_fields): New function.
6899 (gen_traced_pop): Call it, add gdbarch argument.
6900 (gen_trace_for_expr): Update call to it.
6901 (gen_trace_for_var): Ditto, and report optimized-out variables.
6902 (gen_struct_ref_recursive): Check for optimized-out value.
6903 (gen_struct_elt_for_reference): Ditto.
6904 (gen_static_field): Pass gdbarch instead of expression, assume
6905 optimization if field not found.
6906 (gen_var_ref): Set the optimized_out flag.
6907 (gen_expr): Error on optimized-out variable.
6908 * tracepoint.c (collect_symbol): Handle struct-valued vars as
6909 expressions, skip optimized-out variables with computed locations.
6910 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
6911 erroring out if location expression missing.
6912 (loclist_tracepoint_var_ref): Don't error out here.
6913
a3b2a86b
TT
69142010-03-17 Tom Tromey <tromey@redhat.com>
6915
6916 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
6917 DWARF data is available.
6918
38963c97
DJ
69192010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
6920
6921 * symfile.c (generic_load): Reset breakpoints after loading.
6922
ddabfc73
TT
69232010-03-17 Tom Tromey <tromey@redhat.com>
6924
6925 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
6926
d8c09fb5
JK
69272010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6928
6929 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
6930 create_breakpoint call, adjust the parameters.
6931
bbb0eef6
JK
69322010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6933 Chandru <chandru@in.ibm.com>
6934
6935 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
6936 * valarith.c (value_subscripted_rvalue): Suppress error if
6937 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
6938
46956e39
HZ
69392010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
6940
6941 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
6942
b8d088ac
JB
69432010-03-16 Joel Brobecker <brobecker@adacore.com>
6944
6945 * ada-tasks.c (task_command_1): Check that the task ptid is valid
6946 before doing the associated thread switch.
6947
322be962
DJ
69482010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
6949
6950 * MAINTAINERS: Update my email address.
6951
8cdf0e15
VP
69522010-03-16 Vladimir Prus <vladimir@codesourcery.com>
6953
6954 Simplify MI breakpoint setting.
6955
6956 * breakpoint.c (break_command_really): Make nonstatic and
6957 rename to...
6958 (create_breakpoint): ...this. Rename prior function by this name
6959 to...
6960 (create_breakpoint_sal): ...this.
6961 (create_breakpoints): Rename to...
6962 (create_breakpoints_sal): ...this.
6963 (set_breakpoint): Remove.
6964 * breakpoint.h: Adjust to above changes.
6965 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
6966
b6e7192f
SS
69672010-03-15 Stan Shebs <stan@codesourcery.com>
6968
6969 * ax-gdb.c: Include cp-support.h.
6970 (find_field): Remove.
6971 (gen_primitive_field): New function.
6972 (gen_struct_ref_recursive): New function.
6973 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
6974 of find_field.
6975 (gen_static_field): New function.
6976 (gen_struct_elt_for_reference): New.
6977 (gen_namespace_elt): New.
6978 (gen_maybe_namespace_elt): New.
6979 (gen_aggregate_elt_ref): New.
6980 (gen_expr): Add OP_SCOPE, display opcode name in error message.
6981
1054b214
TT
69822010-03-15 Tom Tromey <tromey@redhat.com>
6983
6984 * dwarf2read.c (die_needs_namespace): Also return 0 for
6985 DW_TAG_subprogram.
6986
13387711
SW
69872010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
6988
6989 PR c++/7936:
6990 * cp-support.h: Added char *declaration element to using_direct
6991 data struct.
6992 (cp_add_using): Added char *declaration argument.
6993 (cp_add_using_directive): Ditto.
6994 (cp_lookup_symbol_imports): made extern.
6995 * cp-namespace.c: Updated with the above changes.
6996 * dwarf2read.c (read_import_statement): Ditto.
6997 (read_namespace): Ditto.
6998 (read_import_statement): Support import declarations.
6999 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7000 declarations.
7001 Added support for 'declaration_only' search.
7002 (cp_lookup_symbol_namespace): Attempt to search for the name as
7003 is before consideration of imports.
7004 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7005 search at every block level search.
7006 Now takes language argument.
7007 (lookup_symbol_aux): Updated.
7008
6e31430b
TT
70092010-03-15 Tom Tromey <tromey@redhat.com>
7010
7011 * c-exp.y (name_not_typename): Add 'operator' clause.
7012
4dea3bb7 70132010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
7014
7015 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7016 * configure: Regenerate.
7017
4d9743af
JK
70182010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7019
7020 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7021 and ".sdynbss". Update the comment.
7022
f75150fe
JZ
70232010-03-15 Jie Zhang <jie@codesourcery.com>
7024
7025 * MAINTAINERS: Update my email address.
7026
3c13bc11
DJ
70272010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7028
7029 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7030
43484f03
DJ
70312010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7032
7033 * charset.c [USE_WIN32API]: Include <windows.h>.
7034 (_initialize_charset): Correct type of w32_host_default_charset.
7035
5f25d77d
PA
70362010-03-14 Pedro Alves <pedro@codesourcery.com>
7037
7038 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7039
1c809c68
TT
70402010-03-12 Tom Tromey <tromey@redhat.com>
7041
7042 PR c++/9708:
7043 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7044 in a lexical block does not need a namespace.
7045 (new_symbol) <DW_TAG_variable>: Put extern variables on
7046 list_in_scope in all cases.
7047
948103cf
SS
70482010-03-12 Stan Shebs <stan@codesourcery.com>
7049
7050 * ax-gdb.c (gen_expr): Add shift expressions.
7051 (gen_expr_binop_rest): Ditto.
7052
00ae8fef
SW
70532010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
7054
7055 * buildsym.c (finish_block): Reset using_directives pointer
7056 after block initialization.
7057
9cad29ac
L
70582010-03-12 H.J. Lu <hongjiu.lu@intel.com>
7059
7060 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
7061 * i386-tdep.c (i386_word_names): Likewise.
7062
2f4d8875
PA
70632010-03-12 Pedro Alves <pedro@codesourcery.com>
7064
7065 * target.c (memory_xfer_partial): Don't use the stack cache if
7066 inspecting trace frames.
7067 * tracepoint.c (finish_tfind_command): Invalidate the target
7068 dcache.
7069
ccf26247
JK
70702010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7071
7072 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7073 for the PIC displacement, print also the displacement value.
7074 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
7075
477c84a7
KB
70762010-03-10 Kevin Buettner <kevinb@redhat.com>
7077
7078 * remote-mips.c (close_ports, mips_initialize_cleanups)
7079 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7080 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7081 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7082 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7083 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
7084 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
7085 comments describing each of these functions.
7086 (mips_enter_debug, mips_exit_debug, common_open)
7087 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
7088 blank line after the comment describing the function.
7089
01c30d6e
JK
70902010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7091
7092 * solib-svr4.c (svr4_exec_displacement): Return now success, new
7093 parameter displacementp. Update comment.
7094 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
7095 element exists. Return if svr4_exec_displacement was not successful.
7096 Update comment.
7097
09919ac2
JK
70982010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7099 Daniel Jacobowitz <dan@codesourcery.com>
7100
7101 * solib-svr4.c (read_program_header): Support type == -1 to read
7102 all program headers.
7103 (read_program_headers_from_bfd): New function.
7104 (svr4_static_exec_displacement): Remove and move the comment ...
7105 (svr4_exec_displacement): ... here. Remove variable found. New
7106 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
7107 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
7108 targets using read_program_headers_from_bfd. Remove the call of
7109 svr4_static_exec_displacement.
7110
d146bf1e
TT
71112010-03-10 Tom Tromey <tromey@redhat.com>
7112
7113 * dwarf2read.c (struct pubnames_header): Remove.
7114 (_PUBNAMES_HEADER): Remove.
7115 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
7116 (struct aranges_header): Remove.
7117 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
7118 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
7119 (PUBNAMES_SECTION): Remove.
7120 (ARANGES_SECTION): Remove.
7121 (dwarf2_locate_sections): Don't handle pubnames or aranges.
7122 (dwarf2_build_psymtabs): Remove dead code.
7123 (dwarf2_build_psymtabs_easy): Remove.
7124
be391dca
TT
71252010-03-10 Tom Tromey <tromey@redhat.com>
7126
7127 * elfread.c (elf_symfile_read): Don't call
7128 dwarf2_build_frame_info.
7129 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
7130 (struct dwarf2_per_objfile) <objfile>: New field.
7131 (dwarf2_has_info): Now idempotent. Set objfile field.
7132 (dwarf2_read_section): Check and set readin field. Call
7133 posix_madvise.
7134 (dwarf2_build_psymtabs): Don't read all sections.
7135 (read_type_comp_unit_head): Read types section.
7136 (create_debug_types_hash_table): Likewise.
7137 (init_cu_die_reader): Add asserts.
7138 (process_type_comp_unit): Add assert.
7139 (dwarf2_build_psymtabs_hard): Read info section.
7140 (load_partial_comp_unit): Add assert.
7141 (create_all_comp_units): Read info section.
7142 (load_full_comp_unit): Likewise.
7143 (dwarf2_ranges_read): Read ranges section.
7144 (dwarf2_record_block_ranges): Add assert.
7145 (dwarf2_read_abbrevs): Read abbrev section.
7146 (read_indirect_string): Read str section.
7147 (dwarf_decode_line_header): Read line section.
7148 (read_signatured_type_at_offset): Read types section.
7149 (dwarf_decode_macros): Read macinfo section.
7150 (dwarf2_symbol_mark_computed): Read loc section.
7151 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
7152 dwarf2_build_frame_info.
7153 (dwarf2_build_frame_info): Unconditionally set
7154 dwarf2_frame_objfile_data on the objfile.
7155 * configure.ac: Check for posix_madvise.
7156 * config.in, configure: Rebuild.
7157
ccefe4c4
TT
71582010-03-10 Tom Tromey <tromey@redhat.com>
7159
e38df1d0
TT
7160 * xcoffread.c (xcoff_start_psymtab): Update.
7161 (xcoff_end_psymtab): Update.
7162 * psymtab.c (allocate_psymtab): Remove dead code.
7163 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
7164 void*.
7165 * mdebugread.c (parse_partial_symbols): Update.
7166 (new_psymtab): Likewise.
7167 * dwarf2read.c (process_psymtab_comp_unit): Update.
7168 (psymtab_to_symtab_1): Update.
7169 * dbxread.c (start_psymtab): Update.
7170 (end_psymtab): Likewise.
7171
be391dca 71722010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 7173
ccefe4c4
TT
7174 * xcoffread.c: Include psymtab.h.
7175 (xcoff_sym_fns): Update.
7176 * symtab.h (struct partial_symbol): Remove.
7177 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
7178 (struct partial_symtab): Remove.
7179 (PSYMTAB_TO_SYMTAB): Remove.
7180 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
7181 (find_pc_sect_psymtab): Remove.
7182 (find_pc_sect_symtab_via_partial): Declare.
7183 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
7184 (find_main_psymtab): Remove.
7185 (find_main_filename): Declare.
7186 (fixup_psymbol_section): Remove.
7187 (fixup_section): Declare.
7188 * symtab.c: Include psymtab.h.
7189 (lookup_symtab): Use lookup_symtab method.
7190 (lookup_partial_symtab): Remove.
7191 (find_pc_sect_psymtab_closer): Remove.
7192 (find_pc_sect_psymtab): Remove.
7193 (find_pc_sect_symtab_via_partial): New function.
7194 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
7195 (fixup_section): No longer static.
7196 (fixup_psymbol_section): Remove.
7197 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
7198 (lookup_global_symbol_from_objfile): Likewise.
7199 (lookup_symbol_aux_psymtabs): Remove.
7200 (lookup_symbol_aux_quick): New function.
7201 (lookup_symbol_global): Use lookup_symbol_aux_quick.
7202 (lookup_partial_symbol): Remove.
7203 (basic_lookup_transparent_type_quick): New function.
7204 (basic_lookup_transparent_type): Use it.
7205 (find_main_psymtab): Remove.
7206 (find_main_filename): New function.
7207 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
7208 (find_line_symtab): Use expand_symtabs_with_filename method.
7209 (output_partial_symbol_filename): New function.
7210 (sources_info): Use map_partial_symbol_filenames.
7211 (struct search_symbols_data): New type.
7212 (search_symbols_file_matches): New function.
7213 (search_symbols_name_matches): Likewise.
7214 (search_symbols): Use expand_symtabs_matching method.
7215 (struct add_name_data): Rename from add_macro_name_data.
7216 (add_macro_name): Update.
7217 (add_partial_symbol_name): New function.
7218 (default_make_symbol_completion_list): Use
7219 map_partial_symbol_names.
7220 (struct add_partial_symbol_name): New type.
7221 (maybe_add_partial_symtab_filename): New function.
7222 (make_source_files_completion_list): Use
7223 map_partial_symbol_filenames.
7224 (expand_line_sal): Use expand_symtabs_with_filename method.
7225 * symmisc.c: Include psymtab.h.
7226 (print_objfile_statistics): Use print_stats method.
7227 (dump_objfile): Use dump method.
7228 (dump_psymtab, maintenance_print_psymbols)
7229 (maintenance_info_psymtabs, maintenance_check_symtabs)
7230 (extend_psymbol_list): Remove.
7231 * symfile.h (struct quick_symbol_functions): New struct.
7232 (struct sym_fns) <qf>: New field.
7233 (sort_pst_symbols): Remove.
7234 (increment_reading_symtab): Declare.
7235 * symfile.c: Include psymtab.h.
7236 (compare_psymbols, sort_pst_symbols): Remove.
7237 (psymtab_to_symtab): Remove.
7238 (increment_reading_symtab): New function.
7239 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
7240 method.
7241 (set_initial_language): Use find_main_filename.
7242 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
7243 (free_named_symtabs): Remove unused code.
7244 (start_psymtab_common, add_psymbol_to_bcache)
7245 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
7246 Remove.
7247 * stack.c: Include psymtab.h, symfile.h.
7248 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
7249 * source.h (psymtab_to_fullname): Don't declare.
7250 * source.c: Include psymtab.h.
7251 (select_source_symtab): Use find_last_source_symtab method.
7252 (forget_cached_source_info): Use forget_cached_source_info
7253 method.
7254 (find_and_open_source): No longer static.
7255 (psymtab_to_fullname): Remove.
7256 * somread.c: Include psymtab.h.
7257 (som_sym_fns): Update.
7258 * psympriv.h: New file.
7259 * psymtab.h: New file.
7260 * psymtab.c: New file.
7261 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
7262 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
7263 * objfiles.c: Include psymtab.h.
7264 (objfile_relocate1): Use relocate method.
7265 (objfile_has_partial_symbols): Use has_symbols method.
7266 * mipsread.c: Include psymtab.h.
7267 (ecoff_sym_fns): Update.
7268 * mi/mi-cmd-file.c: Include psymtab.h.
7269 (print_partial_file_name): New function.
7270 (mi_cmd_file_list_exec_source_files): Use
7271 map_partial_symbol_filenames.
7272 * mdebugread.c: Include psympriv.h.
7273 * machoread.c: Include psympriv.h.
7274 (macho_sym_fns): Update.
7275 * m2-exp.y (yylex): Use lookup_symtab.
7276 * elfread.c: Include psympriv.h.
7277 (elf_sym_fns): Update.
7278 * dwarf2read.c: Include psympriv.h.
7279 * dbxread.c: Include psympriv.h.
7280 (aout_sym_fns): Update.
7281 * cp-support.c: Include psymtab.h.
7282 (read_in_psymtabs): Remove.
7283 (make_symbol_overload_list_qualified): Use
7284 expand_symtabs_for_function method.
7285 * coffread.c: Include psympriv.h.
7286 (coff_sym_fns): Update.
7287 * blockframe.c: Include psymtab.h.
7288 (find_pc_partial_function): Use find_pc_sect_symtab method.
7289 * ada-lang.h (ada_update_initial_language): Update.
7290 * ada-lang.c: Include psymtab.h.
7291 (ada_update_initial_language): Remove 'main_pst' argument.
7292 (ada_lookup_partial_symbol): Remove.
7293 (struct ada_psym_data): New type.
7294 (ada_add_psyms): New function.
7295 (ada_add_non_local_symbols): Use map_ada_symtabs method.
7296 (struct add_partial_datum): New type.
7297 (ada_add_partial_symbol_completions): New function.
7298 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
7299 (ada_exception_support_info_sniffer): Update.
7300 * Makefile.in (SFILES): Add psymtab.c.
7301 (COMMON_OBS): Add psymtab.o.
7302 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
7303
7d8500b7
PM
73042010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7305
7306 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
7307
c0cc3a76
SW
73082010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
7309
7310 PR C++/11236:
7311 * cp-namespace.c (cp_add_using): Deleted.
7312 (cp_add_using_directive): Use obstack allocations.
7313 Merged the function cp_add_using into this one.
7314 Added 'struct obstack *' argument.
7315 (cp_scan_for_anonymous_namespaces): Updated.
7316 * cp-support.h: Updated.
7317 * dwarf2read.c (read_import_statement): Updated.
7318 (read_namespace): Updated.
7319
452fa064
CF
73202010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7321
7322 * windows-nat.c (cygwin_conv_path): Remove old macro.
7323
60e1c644
PA
73242010-03-10 Pedro Alves <pedro@codesourcery.com>
7325
7326 * breakpoint.c (condition_command): Handle watchpoint conditions.
7327 (is_hardware_watchpoint): Add comment.
7328 (is_watchpoint): New.
7329 (update_watchpoint): Don't reparse the watchpoint's condition
7330 unless necessary.
7331 (WP_IGNORE): New.
7332 (watchpoint_check): Use it.
7333 (bpstat_check_watchpoint): Handle it.
7334 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
7335 conditions in a frame where it makes sense.
7336 (watch_command_1): Store the innermost block of the condition
7337 expression.
7338 (delete_breakpoint): Delete the watchpoint condition expression.
7339 * breakpoint.h (struct bp_location) <cond>: Update comment.
7340 (struct breakpoint): New field `cond_exp_valid_block'.
7341
af6b7be1
JB
73422010-03-09 Joel Brobecker <brobecker@adacore.com>
7343
7344 Adjust handling of Ada DIEs after dwarf2_physname patch.
7345 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
7346
60c5c021
CF
73472010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
7348 Pierre Muller <muller@ics.u-strasbg.fr>
7349
7350 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
7351 from/to posix/win32.
7352 (windows_make_so): Use non-Cygwin 1.7 specific function.
7353 (windows_create_inferior): Make sure that cygallargs points to
7354 original args in non Cygwin 1.7. case.
7355
60a1502a
MS
73562010-03-09 Michael Snyder <msnyder@vmware.com>
7357
7358 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
7359 after target_read_memory to get host byte order.
7360 (i386_process_record): Ditto.
7361
94af9270
KS
73622010-03-09 Keith Seitz <keiths@redhat.com>
7363
7364 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
7365 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
7366 print out const or volatile qualifiers, too.
7367 (c_type_print_args): Add parameters show_artificial and language.
7368 Skip artificial parameters when requested.
7369 Use the appropriate language printer.
7370 (c_type_print_varspec): Tell c_type_print_args to skip artificial
7371 parameters and pass language_c.
7372 * dwarf2read.c (die_list): New file global.
7373 (struct partial_die_info): Update comments for name field.
7374 (pdi_needs_namespace): Renamed to ...
7375 (die_needs_namespace): ... this. Rewrite.
7376 (dwarf2_linkage_name): Remove.
7377 (add_partial_symbol): Do not predicate the call to
7378 partial_die_full_name based on pdi_needs_namespace.
7379 Remove call to cp_check_possible_namespace_symbols and associated
7380 outdated comments.
7381 (guess_structure_name): Do not inspect child subprogram DIEs.
7382 (dwarf2_fullname): Update comments.
7383 Use die_needs_namespace to assist in computing the name.
7384 (read_func_scope): Use dwarf2_name to get the DIE's name.
7385 Use dwarf2_physname to get the "linkage name" of the DIE.
7386 (dwarf2_add_member_field): Use dwarf2_physname instead of
7387 dwarf2_linkage_name.
7388 (read_structure_type): For structs and classes, set TYPE_NAME, too.
7389 (determine_class): Remove.
7390 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
7391 except Ada.
7392 (new_symbol): Unconditionally call dwarf2_name.
7393 Compute the "linkage name" using dwarf2_physname.
7394 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
7395 When determining to scan for anonymous C++ namespaces, ignore
7396 the linkage name.
7397 (dwarf2_physname): New function.
7398 (dwarf2_full_name): Move content to new function and call
7399 that.
7400 (dwarf2_compute_name): "New" function.
7401 (_initialize_dwarf2_read): Initialize die_list.
7402 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
7403 physname.
7404 (gnu_v3_print_method_ptr): Use the physname for virtual methods
7405 without a demangled name.
7406 Print out type information for non-virtual methods.
c8d5aac9 7407 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 7408 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
7409 If we found a file symtab, re-evaluate whether the remainder is_quoted.
7410 (decode_compound): Stop consuming at an open parenthesis.
7411 Keep template parameters.
7412 Keep any overload information.
7413 Keep keywords like "const".
7414 Remove paren_pointer.
7415 Move is_quoted check from set_flags to here.
7416 Remove #if 0 code from 2000. Ten years is long enough.
7417 (find_method): Before comparing symbol names, canonicalize the string
7418 from the user.
7419 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
7420 (find_method_overload_end): New function.
7421 (set_flags): Remove.
c8d5aac9
L
7422 (decode_compound): Assume that parentheses are matched.
7423 It's a lot easier.
94af9270
KS
7424 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
7425 to cplus_demangle.
7426 * linespec.c (decode_line_1): Keep important keywords like
7427 "const" and "volatile".
7428 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
7429 * typeprint.h (c_type_print_args): Add declaration.
7430 * ui-file.c (do_ui_file_obsavestring): New function.
7431 (ui_file_obsavestring): New function.
7432 * ui-file.h (ui_file_obsavestring): Add declaration.
7433 * valops.c (find_overload_match): Resolve the object to
7434 a non-pointer type.
7435 If the object is a data member, search the object for the member
7436 and return with staticp set.
7437 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
7438 Do not attempt to extract a function name from non-function types.
7439 If the extracted function name and the original name are the same,
7440 we don't have a C++ method.
7441
8d95cc3b
PA
7442 From Jan Kratochvil <jan.kratochvil@redhat.com>:
7443 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
7444
7445 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
7446 and arguments from symbol lookups.
7447 * ax-gdb.c (gen_expr): Likewise.
7448 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
7449 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
7450 lookup_possible_namespace_symbol): Likewise.
7451 * cp-support.c (read_in_psymtabs): Likewise.
7452 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
7453 * language.h (la_lookup_symbol_nonlocal): Likewise.
7454 * scm-valprint.c (scm_inferior_print): Likewise.
7455 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
7456 * solib-svr.c (elf_lookup_lib): Likewise.
7457 * solib.c (show_auto_solib_add): Likewise.
7458 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
7459 * symmisc.c (maintenance_check_symtabs): Likewise.
7460 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
7461 lookup_symbol_aux_local, lookup_symbol_aux_block,
7462 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
7463 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
7464 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
7465 basic_lookup_transparent_type, find_main_psymtab,
7466 lookup_block_symbol): Likewise.
7467 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
7468 lookup_symbol_global, lookup_symbol_aux_block,
7469 lookup_symbol_partial_symbol, lookup_block_symbol,
7470 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
7471
9cb74f47
PM
74722010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
7473
7474 * python/python-internal.h: Include symtab.h.
7475
af6b7be1
JB
74762010-03-09 Joel Brobecker <brobecker@adacore.com>
7477 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
7478
7479 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
7480 * p-valprint.c (pascal_val_print): Remove undeed block and fix
7481 indentation.
7482
bad56014
TT
74832010-03-08 Tom Tromey <tromey@redhat.com>
7484
7485 * breakpoint.c (breakpoint_1): Add "QUIT".
7486
08105857
PA
74872010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
7488 Pedro Alves <pedro@codesourcery.com>
7489
7490 * solib.c (solib_find): Replace extension if
7491 solib_symbols_extension is set in the target gdbarch.
7492 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
7493 solib_symbols_extension to "sym".
7494 * gdbarch.sh (solib_symbols_extension): New variable.
7495 (pstring): New function.
7496 * gdbarch.h, gdbarch.c: Regenerate.
7497
7c953934
TT
74982010-03-08 Tom Tromey <tromey@redhat.com>
7499
7500 PR cli/9591:
7501 * NEWS: Update.
7502 * utils.c: Include main.h.
7503 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
7504 (defaulted_query): Use default answer if `batch_flag'.
7505 * main.h (batch_flag): Declare.
7506 * main.c (batch_flag): New global.
7507 (captured_main): Remove 'batch'. Update.
7508
bbd2783e
KB
75092010-03-08 Kevin Buettner <kevinb@redhat.com>
7510
7511 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
7512 and Kevin Buettner:
7513
7514 * remote-mips.c (rockhopper_ops): New target_ops struct.
7515 (MON_ROCKHOPPER): New mips_monitor_type.
7516 (read_hex_value): New function.
7517 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 7518 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
7519 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
7520 (rockhopper_open): New function.
7521 (mips_wait): Read the PC, FP and SP fields as strings. Use
7522 read_hex_value to parse them and mips_set_register to commit them.
7523 (mips_set_register): New function.
7524 (mips_fetch_registers): Do not cast register value to "unsigned"
7525 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
7526 (mips_store_registers): Use a 'T' packet to set registers when
7527 using MON_ROCKHOPPER.
7528 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
7529 and expect the total to be printed before the entry address.
7530 (_initialize_remote_mips): Initialize and add rockhopper_ops.
7531
566f3d17
KB
75322010-03-08 Kevin Buettner <kevinb@redhat.com>
7533
7534 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
7535 Change return value to int. Store value fetched in location
7536 addressed by `val'. Use function's return value as success
7537 or failure indicator. Adjust all callers.
7538
9c8ee2ab 75392010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
7540
7541 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
7542
7155de5a
HZ
75432010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7544 Hui Zhu <teawater@gmail.com>
7545
7546 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
7547 tmp_to_stopped_data_address.
7548 (record_open): Reset tmp_to_stopped_by_watchpoint and
7549 tmp_to_stopped_data_address.
7550 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
7551 to_stopped_data_address.
7552
580879fc
HZ
75532010-03-08 Hui Zhu <teawater@gmail.com>
7554
7555 * i386-tdep.c (i386_process_record): Initialize regnum.
7556
b0fcb67f
JK
75572010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7558
7559 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
7560 Do not warn on ".gnu.liblist" and ".gnu.conflict".
7561
08597104
JB
75622010-03-08 Joel Brobecker <brobecker@adacore.com>
7563
7564 Memory error when reading wrong core file.
7565 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
7566 errors while reading the inferior memory, and return zero if
7567 an exception was raised.
7568
425b824a
MS
75692010-03-07 Michael Snyder <msnyder@vmware.com>
7570
ec6dbf37
MS
7571 * record.c (record_restore): Rename tmpu8 to rectype.
7572
648d0c8b
MS
7573 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
7574 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
7575
7576 (i386_record_push): Rename local tmpulongest to addr.
7577
7578 (i386_process_record): Rename local tmpulongest to addr.
7579
7580 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
7581 addr64.
955db0c0
MS
7582
7583 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 7584
10760264
JB
75852010-03-07 Joel Brobecker <brobecker@adacore.com>
7586
7587 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 7588 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 7589
b3c613f2
CF
75902010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
7591
7592 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
7593 block. Define helper macros to reduce ifdefs in code.
7594 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
7595 size. Call unadorned GetModuleFileNameEx rather than
7596 GetModuleFileNameEx*.
7597 (windows_make_so): Use __PMAX to denote maximum buffer size and
7598 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
7599 appropriate.
7600 (get_image_name): Use __PMAX to denote maximum buffer size.
7601 (handle_load_dll): Likewise.
7602 (windows_pid_to_exec_file): Likewise.
7603 (windows_create_inferior): Add many accommodations for older Cygwin and
7604 non-Cygwin.
7605 (bad_GetModuleFileNameExW): Control inclusion of this function based on
7606 __USEWIDE conditional.
7607 (bad_GetModuleFileNameExA): Likewise.
7608 (_initialize_loadable): Just use real function names without the dyn_
7609 part since they are defined earlier.
7610
f870a310
TT
76112010-03-05 Corinna Vinschen <vinschen@redhat.com>
7612 Tom Tromey <tromey@redhat.com>
7613
7614 * utils.c (host_char_to_target): Add 'gdbarch' argument.
7615 (parse_escape): Likewise.
7616 * python/py-utils.c (unicode_to_target_string): Update.
7617 (unicode_to_target_python_string): Update.
7618 (target_string_to_unicode): Update.
7619 * printcmd.c (printf_command): Update.
7620 * p-exp.y (yylex): Update.
7621 * objc-exp.y (yylex): Update.
7622 * mi/mi-parse.c: Include charset.h.
7623 (mi_parse_escape): New function.
7624 (mi_parse_argv): Use it.
7625 * jv-exp.y (yylex): Update.
7626 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
7627 function.
7628 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
7629 * gdbarch.sh (auto_charset, auto_wide_charset): New.
7630 * gdbarch.c: Rebuild.
7631 * gdbarch.h: Rebuild.
7632 * defs.h (parse_escape): Update.
7633 * cli/cli-setshow.c: Include arch-utils.h.
7634 (do_setshow_command): Update.
7635 * cli/cli-cmds.c (echo_command): Update.
7636 * charset.h (target_charset, target_wide_charset): Update.
7637 * charset.c: Include arch-utils.h.
7638 (target_charset_name): Default to "auto".
7639 (target_wide_charset_name): Likewise.
7640 (show_target_charset_name): Handle "auto".
7641 (show_target_wide_charset_name): Likewise.
7642 (be_le_arch): New global.
7643 (set_be_le_names): Add 'gdbarch' argument.
7644 (validate): Likewise. Don't call set_be_le_names.
7645 (set_charset_sfunc, set_host_charset_sfunc)
7646 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
7647 Update.
7648 (target_charset): Add 'gdbarch' argument.
7649 (target_wide_charset): Likewise. Remove 'byte_order' argument.
7650 (auto_target_charset_name): New global.
7651 (default_auto_charset, default_auto_wide_charset): New functions.
7652 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
7653 for target charsets. Copy result of nl_langinfo. Use GetACP if
7654 USE_WIN32API.
7655 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
7656 remove 'byte_order' argument. Update.
7657 (classify_type): Likewise.
7658 (c_emit_char): Update.
7659 (c_printchar): Update.
7660 (c_printstr): Update.
7661 (c_get_string): Update.
7662 (evaluate_subexp_c): Update.
7663 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
7664 Declare.
7665 * python/python.c (gdbpy_target_charset): New function.
7666 (gdbpy_target_wide_charset): Likewise.
7667 (GdbMethods): Update.
7668 * NEWS: Update.
7669
4e7386b0
UW
76702010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7671
7672 * symfile.c (build_section_addr_info_from_objfile): Do not mask
7673 off high address bits.
7674
aab48ede
UW
76752010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7676
7677 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
7678 address as UnsignedLongLong, not LongLong.
7679
8eeafb51 76802010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 7681 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
7682
7683 * remote-mips.c (gdbthread.h): Include.
7684 (remote_mips_ptid): Declare.
7685 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
7686 (common_open): Set inferior_ptid, add it as an inferior, and
7687 as a thread too. Delete FIXME comment regarding start_remote().
7688 (mips_close): Invoke generic_mourn_inferior().
7689 (mips_kill): Make sure that target_mourn_inferior is invoked.
7690 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
7691 it's now invoked from mips_close().
7692 (mips_load): Don't null out inferior_ptid. Don't call
7693 clear_symtab_users().
7694 (mips_thread_alive, mips_pid_to_str): New functions.
7695 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
7696 to_thread_alive and to_pid_to_str operations.
7697
ae411497
TT
76982010-03-04 Tom Tromey <tromey@redhat.com>
7699
7700 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
7701 in DWARF 3 and later.
7702 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
7703
0e0b460e
KS
77042010-03-04 Keith Seitz <keiths@redhat.com>
7705
7706 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
7707 If the filename portion of the linespec was quoted, recheck the
7708 remainder for additional quoting.
7709 (locate_first_half): Skip over completer chars, too.
7710
1b93ff13
TT
77112010-03-04 Tom Tromey <tromey@redhat.com>
7712
7713 * printcmd.c (printf_command): Pass dummy argument to
7714 printf_filtered.
7715
fc36e839
DE
77162010-03-04 Doug Evans <dje@google.com>
7717
111f853c
DE
7718 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
7719 unwound_fp.
7720
fc36e839
DE
7721 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
7722
c7437ca6
PA
77232010-03-04 Pedro Alves <pedro@codesourcery.com>
7724
7725 * breakpoint.c (update_watchpoint): Create a sentinel location if
7726 the software watchpoint isn't watching any memory.
7727 (breakpoint_address_bits): Skip dummy software watchpoint locations.
7728
58dadb1b
PA
77292010-03-04 Pedro Alves <pedro@codesourcery.com>
7730
7731 * utils.c (fputs_maybe_filtered): Check if there's already a top
7732 level interpreter before dereferencing it. If there isn't one,
7733 don't paginate either.
7734
50e98be4
DJ
77352010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7736
7737 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
7738 the state right when single stepping.
7739 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
7740 Get the next PC along with the instruction state.
7741 (thumb_get_next_pc): Remove.
7742 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
7743
2e3ceee9
HZ
77442010-03-04 Hui Zhu <teawater@gmail.com>
7745
7746 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
7747
390a8aca
PA
77482010-03-03 Pedro Alves <pedro@codesourcery.com>
7749
7750 * utils.c (fputs_maybe_filtered): Always disable pagination if the
7751 top level interpreter is MI.
7752
9355b391
SS
77532010-03-03 Stan Shebs <stan@codesourcery.com>
7754
7755 * remote.c (remote_download_tracepoint): Iterate over locations.
7756 * tracepoint.c (validate_actionline): Ditto.
7757 (encode_actions): Add location argument.
7758 (trace_dump_command): Check all locations to see if stepping
7759 frame.
390a8aca 7760
8685c86f
L
77612010-03-03 H.J. Lu <hongjiu.lu@intel.com>
7762 Eli Zaretskii <eliz@gnu.org>
7763
7764 * NEWS: Add X86 general purpose registers section.
7765
e8f781e2
TT
77662010-03-03 Tom Tromey <tromey@redhat.com>
7767
7768 PR mi/11098:
7769 * varobj.c (install_new_value): Handle case where new print_value
7770 is NULL.
7771
a0e0ef55
TT
77722010-03-03 Dainis Jonitis <jonitis@gmail.com>
7773
7774 PR gdb/11345:
7775 * printcmd.c (printf_command): Print end of format string using
7776 printf_filtered.
7777
a58d7472
TT
77782010-03-02 Tom Tromey <tromey@redhat.com>
7779
7780 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
7781 * defs.h (read_command_lines_1): Add missing 'void'.
7782 * cli/cli-script.c (recurse_read_control_structure): Add missing
7783 'void'.
7784 (read_next_line): Likewise.
7785 (read_command_lines_1): Likewise.
7786
ce50d78b
UW
77872010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7788
7789 * spu-tdep.c (spu_analyze_prologue): Track instruction to
7790 store backchain as part of prologue.
7791
7e9af34a
DJ
77922010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
7793
7794 * progspace.c (update_address_spaces): Update inferior address spaces
7795 also.
7796
01637564
DE
77972010-03-02 Doug Evans <dje@google.com>
7798
7799 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
7800 lowpc,highpc args to addrmap_set_empty.
7801
1ba53b71
L
78022010-03-02 H.J. Lu <hongjiu.lu@intel.com>
7803
7804 * amd64-tdep.c (amd64_byte_names): New.
7805 (amd64_word_names): Likewise.
7806 (amd64_dword_names): Likewise.
7807 (amd64_pseudo_register_name): Likewise.
7808 (amd64_pseudo_register_read): Likewise.
7809 (amd64_pseudo_register_write): Likewise.
7810 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
7811 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
7812 set_gdbarch_pseudo_register_write and
7813 set_tdesc_pseudo_register_name. Don't call
7814 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
7815
7816 * i386-tdep.c (i386_num_mmx_regs): Removed.
7817 (i386_num_pseudo_regs): Likewise.
7818 (i386_byte_names): New.
7819 (i386_word_names): Likewise.
7820 (i386_byte_regnum_p): Likewise.
7821 (i386_word_regnum_p): Likewise.
7822 (i386_mmx_regnum_p): Updated.
7823 (i386_pseudo_register_name): Make it global. Handle byte and
7824 word pseudo-registers.
7825 (i386_pseudo_register_read): Likewise.
7826 (i386_pseudo_register_write): Likewise.
7827 (i386_pseudo_register_type): Handle byte, word and dword
7828 pseudo-registers
7829 (i386_register_reggroup_p): Don't include pseudo
7830 registers, except for MXX, in any register groups. Don't
7831 include pseudo byte, word, dword registers in general_reggroup.
7832 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
7833 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
7834 pseudo-registers after word pseudo-registers. Call
7835 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
7836
7837 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
7838 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
7839 eax_regnum.
7840 (i386_byte_regnum_p): New.
7841 (i386_word_regnum_p): Likewise.
7842 (i386_dword_regnum_p): Likewise.
7843 (i386_pseudo_register_name): Likewise.
7844 (i386_pseudo_register_read): Likewise.
7845 (i386_pseudo_register_write): Likewise.
7846
a6f5ef51
L
78472010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7848
7849 * target-descriptions.c (tdesc_type): Remove
7850 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7851 (tdesc_predefined_types): Likewise.
7852 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
7853 if flag name is empty.
7854 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
7855
7856 * features/i386/32bit-core.xml: Define i386_eflags.
7857 * features/i386/64bit-core.xml: Likewise.
7858
7859 * features/i386/32bit-sse.xml: Define i386_mxcsr.
7860 * features/i386/64bit-sse.xml: Likewise.
7861
7862 * features/i386/amd64-linux.c: Regenerated.
7863 * features/i386/amd64.c: Likewise.
7864 * features/i386/i386-linux.c: Likewise.
7865 * features/i386/i386.c: Likewise.
7866
f5dff777
DJ
78672010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
7868
7869 * gdbtypes.c (append_composite_type_field_raw): New.
7870 (append_composite_type_field_aligned): Use the new function.
7871 * gdbtypes.h (append_composite_type_field_raw): Declare.
7872 * target-descriptions.c (struct tdesc_type_field): Add start and end.
7873 (struct tdesc_type_flag): New type.
7874 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
7875 kind. Add size to u.u. Add u.f for flags.
7876 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
7877 (tdesc_free_type): Likewise.
7878 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
7879 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
7880 (tdesc_add_bitfield, tdesc_add_flag): New.
7881 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
7882 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
7883 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
7884 current_type. Add current_type_size and current_type_is_flags.
7885 (tdesc_start_union): Clear the new fields.
7886 (tdesc_start_struct, tdesc_start_flags): New.
7887 (tdesc_start_field): Handle struct fields, including bitfields.
7888 (field_attributes): Make type optional. Add start and end.
7889 (union_children): Rename to struct_union_children.
7890 (union_attributes): Rename to struct_union_attributes. Add optional
7891 size.
7892 (flags_attributes): New.
7893 (feature_children): Add struct and flags.
7894 * features/gdb-target.dtd: Add flags and struct to features.
7895 Make field type optional. Add field start and end.
7896
90884b2b
L
78972010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7898
7899 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
7900 (amd64_linux_read_description): Likewise.
7901 (_initialize_amd64_linux_nat): Set to_read_description to
7902 amd64_linux_read_description.
7903
7904 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
7905 (amd64_linux_register_name): Removed.
7906 (amd64_linux_register_type): Likewise.
7907 (amd64_linux_core_read_description): New.
7908 (amd64_linux_init_abi): Set target description to
7909 tdesc_amd64_linux if needed. Support orig_rax in target
7910 description. Don't call set_gdbarch_register_name nor
7911 set_gdbarch_register_type. Call
7912 set_gdbarch_core_read_description.
7913 (_initialize_amd64_linux_tdep): Call
7914 initialize_tdesc_amd64_linux.
7915
7916 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
7917
7918 * amd64-tdep.c: Include "features/i386/amd64.c".
7919 (amd64_register_names): Removed.
7920 (amd64_register_name): Likewise.
7921 (amd64_register_type): Likewise.
7922 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 7923 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
7924 set_gdbarch_register_name nor set_gdbarch_register_type.
7925 (_initialize_amd64_tdep): New.
7926
7927 * i386-linux-nat.c (i386_linux_read_description): New.
7928 (_initialize_i386_linux_nat): Set to_read_description to
7929 i386_linux_read_description.
7930
7931 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
7932 (i386_linux_register_name): Removed.
7933 (i386_linux_core_read_description): New.
7934 (i386_linux_read_description): Likewise.
7935 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
7936 Set target description to tdesc_i386_linux if needed. Support
7937 orig_eax. Set register_reggroup_p. Call
7938 set_gdbarch_core_read_description.
7939 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
7940
7941 * i386-linux-tdep.h (tdesc_i386_linux): New.
7942
7943 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
7944 with I387_NUM_REGS.
7945
7946 * i386-tdep.c: Include "features/i386/i386.c".
7947 (i386_register_names): Make it const.
7948 (i386_mmx_names): Likewise.
7949 (i386_num_register_names): Removed.
7950 (i386_register_name): Likewise.
7951 (i386_eflags_type): Likewise.
7952 (i386_mxcsr_type): Likewise.
7953 (i386_sse_type): Likewise.
7954 (i386_register_type): Likewise.
7955 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
7956 (i386_pseudo_register_name): New.
7957 (i386_pseudo_register_type): Likewise.
7958 (i386_mmx_type): Make it static.
7959 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
7960 I387_NUM_REGS. Set num_core_regs and register_names. Don't
7961 call set_gdbarch_register_name nor set_gdbarch_register_type.
7962 Set register_reggroup_p. Set target description to tdesc_i386
7963 if needed. Call set_tdesc_pseudo_register_type,
7964 set_tdesc_pseudo_register_name and tdesc_use_registers.
7965 (_initialize_i386_tdep): Call initialize_tdesc_i386.
7966 initialize_tdesc_x86_64.
7967
7968 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
7969 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
7970 register_names, tdesc and register_reggroup_p.
7971 (I386_NUM_FREGS): Removed.
7972 (i386_eflags_type): Likewise.
7973 (i386_mxcsr_type): Likewise.
7974 (i386_mmx_type): Likewise.
7975 (i386_sse_type): Likewise.
7976 (i386_register_name): Likewise.
7977 (i386_regnum): Add I386_MXCSR_REGNUM.
7978 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
7979
7980 * i387-tdep.h (I387_NUM_REGS): New.
7981
7982 * regformats/i386/i386-linux.dat: Generated.
7983 * regformats/i386/i386.dat: Likewise.
7984 * regformats/i386/amd64-linux.dat: Likewise.
7985 * regformats/i386/amd64.dat: Likewise.
7986
7987 * regformats/reg-i386-linux.dat: Removed.
7988 * regformats/reg-i386.dat: Likewise.
7989 * regformats/reg-x86-64-linux.dat: Likewise.
7990 * regformats/reg-x86-64.dat: Likewise.
7991
d0d0ab16
CV
79922010-03-01 Corinna Vinschen <vinschen@redhat.com>
7993
7994 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
7995 cygwin_conv_path API rather than the deprecated
7996 cygwin_conv_to_full_posix_path.
7997 * windows-nat.c:
7998 (GetModuleFileNameExA): Undefine for Cygwin.
7999 (GetModuleFileNameExW): Define for Cygwin.
8000 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8001 Call GetModuleFileNameExW and convert path to POSIX using
8002 cygwin_conv_path.
8003 (windows_make_so): Always define p. Drop unused variable m.
8004 Don't use Win32 functions to check file existance, rather use
8005 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8006 Use canonicalize_file_name to get full path.
8007 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8008 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8009 use correct target buffer size in call to WideCharToMultiByte.
8010 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8011 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8012 (windows_create_inferior): Convert all paths and arguments to wchar_t
8013 and use CreateProcessW on Cygwin.
8014 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8015 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8016 (bad_GetModuleFileNameExW): Define for Cygwin.
8017 (_initialize_loadable): Load GetModuleFileNameExW into
8018 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8019
dc00d89f
PM
80202010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8021
8022 PR python/11036
8023 * python/py-frame.c (frapy_read_var): Add block argument and logic
8024 to cope with user provided blocks.
8025
0e095b7e
JK
80262010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8027
8028 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8029 New comment.
8030
2f9e05b4
CV
80312010-02-28 Corinna Vinschen <vinschen@redhat.com>
8032
8033 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8034 (COMMON_OBS): ... to here since it's used unconditionally.
8035 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8036 (SFILES): To here.
8037
eb195664
DD
80382010-02-26 David Daney <ddaney@caviumnetworks.com>
8039
8040 * mips-linux-tdep.c: Update struct sigframe comments.
8041 (SIGFRAME_CODE_OFFSET): Delete macro.
8042 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8043 this_frame's sp.
8044 (mips_linux_n32n64_sigframe_init): Same.
8045
97b0f3e2
KB
80462010-02-26 Kevin Buettner <kevinb@redhat.com>
8047
8048 * remote-mips.c (mips_load): Don't use pseudo-register when
8049 invalidating regcache.
8050
4069ebbe
DJ
80512010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8052
8053 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8054
05071a4d
PA
80552010-02-26 Pedro Alves <pedro@codesourcery.com>
8056
8057 * NEWS: Add "New targets" section, and mention ARM Symbian
8058 support.
8059
6063c216
UW
80602010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
8061
8062 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
8063 add ADDR_SIZE member.
8064 (allocate_piece_closure): Update.
8065 (copy_pieced_value_closure): Likewise.
8066 (dwarf2_evaluate_loc_desc): Likewise.
8067 (read_pieced_value): Use DWARF address size instead of
8068 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8069
5107b149 80702010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 8071 Tom Tromey <tromey@redhat.com>
5107b149
PM
8072
8073 * python/py-type.c (typy_lookup_typename): Add in block argument.
8074 If provided restrict lookup to specified blocks.
8075 (gdbpy_lookup_type): Likewise.
8076 (typy_lookup_type): Likewise.
8077
78664fa3 80782010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 8079
78664fa3
PA
8080 Symbian config
8081
8082 gdb/
8083 * arm-symbian-tdep.c: New.
8084 * configure.tgt (arm*-*-symbianelf*): New target.
8085 (*-*-symbianelf*): New OS.
8086 * osabi.c (gdb_osabi_names): Add Symbian.
8087 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
8088 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
8089 (ALLDEPFILES): Add arm-symbian-tdep.c.
8090
eb73e134
DJ
80912010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8092
8093 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
8094
46ef47e5
PA
80952010-02-24 Pedro Alves <pedro@codesourcery.com>
8096
8097 * mi/mi-main.c (mi_cmd_execute): Fix typo.
8098
f3e9a817 80992010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 8100 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
8101 Thiago Jung Bauermann <bauerman@br.ibm.com>
8102
8103 * python/python.c (_initialize_python): Call
8104 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
8105 gdbpy_initialize_blocks.
8106 * python/python-internal.h: Declare struct symbol, block and
8107 symtab_and_line. Declare block_object_type and
8108 symbol_object_type
8109 (gdbpy_lookup_symbol gdbpy_block_for_pc)
8110 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
8111 (symbol_to_symbol_object, block_to_block_object)
8112 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
8113 (gdbpy_initialize_blocks ): Declare.
8114 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
8115 (frapy_select): Add methods.
8116 (frapy_read_var): Add symbol branch.
8117 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
8118 py-block.
8119 (SUBDIR_PYTHON_SRCS): Likewise.
8120 (py-symbol.o): New rule.
8121 (py-symtab.o): Likewise.
8122 (py-block.o): Likewise.
8123 * python/py-symbol.c: New file.
8124 * python/py-symtab.c: Likewise.
8125 * python/py-block.c: Likewise.
8126
24291992
PA
81272010-02-24 Pedro Alves <pedro@codesourcery.com>
8128
8129 PR gdb/11321
8130
8131 * inferior.h (prepare_for_detach): Declare.
8132 (struct inferior) <detaching>: New field.
8133 * infrun.c (prepare_for_detach): New.
8134 (handle_inferior_event) <random signal>: Don't stop if detaching.
8135 * target.c (target_detach): Call prepare_for_detach.
8136
fc1cf338
PA
81372010-02-24 Pedro Alves <pedro@codesourcery.com>
8138
8139 Per-process displaced stepping queue.
8140
8141 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
8142 (displaced_step_gdbarch, displaced_step_closure,
8143 (displaced_step_original, displaced_step_copy): Move globals to
8144 this...
8145 (struct displaced_step_inferior_state): ... new structure.
8146 (displaced_step_inferior_states): New global.
8147 (get_displaced_stepping_state, add_displaced_stepping_state)
8148 (remove_displaced_stepping_state, infrun_inferior_exit): New
8149 functions.
8150 (displaced_step_clear): Add displaced_step_inferior_state
8151 parameter, and adjust to handle it.
8152 (displaced_step_clear_cleanup): Parameter is now a
8153 displaced_step_inferior_state. Adjust.
8154 (displaced_step_prepare): Adjust.
8155 (displaced_step_fixup, displaced_step_fixup)
8156 (infrun_thread_ptid_changed, resume): Adjust.
8157 (init_wait_for_inferior): Don't call displaced_step_clear.
8158 (infrun_thread_stop_requested): Rewrite.
8159 (_initialize_infrun): Install infrun_inferior_exit as
8160 inferior_exit observer.
8161
0723dbf5
PA
81622010-02-24 Pedro Alves <pedro@codesourcery.com>
8163
8164 * inferior.h (ptid_match): Declare.
8165 * infrun.c (ptid_match): New.
8166 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
8167 (handle_notification): Add debug output.
8168 * linux-nat.c (ptid_match): Delete.
8169
09de9781
DM
81702010-02-24 David S. Miller <davem@davemloft.net>
8171
8172 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
8173 * syscalls/sparc-linux.xml: New.
8174 * syscalls/sparc64-linux.xml: New.
8175 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
8176 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
8177 (sparc32_linux_get_syscall_number): New function.
8178 (sparc32_linux_init_abi): Set syscall XML file name and hook up
8179 syscall number fetcher.
8180 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
8181 (sparc64_linux_get_syscall_number): New function.
8182 (sparc64_linux_init_abi): Set syscall XML file name and hook up
8183 syscall number fetcher.
8184
a79b8f6e
VP
81852010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8186
8187 Multiexec MI
8188
8189 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
8190 * inferior.c (add_inferior_silent): Notify inferior_added
8191 observer.
8192 (delete_inferior_1): Notify inferior_removed observer.
8193 (exit_inferior_1): Pass inferior, not pid, to observer.
8194 (inferior_appeared): Likewise.
8195 (add_inferior_with_spaces): New.
8196 (add_inferior_command): Use the above.
8197 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
8198 Declare.
8199
8200 * inflow.c (inflow_inferior_exit): Likewise.
8201 * jit.c (jit_inferior_exit_hook): Likewise.
8202
8203 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
8204 remove-inferior.
8205 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8206 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
8207 (report_initial_inferior): New.
8208 (mi_inferior_removed): Register the above. Make sure
8209 inferior_added observer is called on the first inferior.
8210 (mi_new_thread, mi_thread_exit): Thread group is now identified by
8211 inferior number, not pid.
8212 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
8213 affected.
8214 * mi/mi-main.c (current_context): New.
8215 (proceed_thread_callback): Use typed closure.
8216 Proceed everything if pid is 0. Most implementation split into
8217 (proceed_thread): ... this.
8218 (run_one_inferior): New.
8219 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
8220 Adjust for multiexec behaviour.
8221 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8222 (mi_cmd_execute): Handle the 'thread-group' option here.
8223 Do some extra checks.
8224 * mi-parse.c (mi_parse): Handle the --all and --thread-group
8225 options.
8226 * mi-parse.h (struct mi_parse): New fields all and thread_group.
8227
115d30f9
VP
82282010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8229
8230 Make -exec-run a proper MI commands.
8231
8232 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
8233 * mi/mi-cmds.c (mi_cmds): Adjust.
8234 * mi/mi-main.c (mi_cmd_exec_run): New.
8235
06cd862c
PA
82362010-02-24 Pedro Alves <pedro@codesourcery.com>
8237 Stan Shebs <stan@codesourcery.com>
8238
8239 * tracepoint.h (set_traceframe_number)
8240 (cleanup_restore_current_traceframe): Declare.
8241 * tracepoint.c (set_traceframe_number): New.
8242 (struct current_traceframe_cleanup): New.
8243 (do_restore_current_traceframe_cleanup)
8244 (restore_current_traceframe_cleanup_dtor)
8245 (make_cleanup_restore_current_traceframe): New.
8246 * infrun.c: Include tracepoint.h.
8247 (fetch_inferior_event): Switch out and in of tfind mode.
8248
ab92d69b
PA
82492010-02-24 Pedro Alves <pedro@codesourcery.com>
8250
8251 * breakpoint.c (breakpoint_init_inferior): Also delete
8252 bp_shlib_event breakpoints.
8253 * solib-frv.c (enable_break): Remove call to
8254 remove_solib_event_breakpoints.
8255 * solib-svr4.c (enable_break): Ditto.
8256 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
8257 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
8258 * solib-som.c (som_solib_create_inferior_hook): Ditto.
8259 * solib-spu.c (spu_enable_break): Ditto.
8260
e707a91d
PA
82612010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8262
8263 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
8264
cfce2ea2
PA
82652010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8266
8267 * varobj.c (varobj_update): Avoid non-constants in initializers.
8268
05566b3b
TT
82692010-02-23 Tom Tromey <tromey@redhat.com>
8270
8271 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
8272 handle big-endian values.
8273 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
8274
85d721b8
PA
82752010-02-22 Pedro Alves <pedro@codesourcery.com>
8276
8277 PR9605
8278
8279 gdb/
8280 * breakpoint.c (insert_bp_location): If inserting the read
8281 watchpoint failed, fallback to an access watchpoint.
8282 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
8283 if the value changed, if not watching the same memory for writes.
8284 (watchpoint_locations_match): Add comment.
8285 (update_global_location_list): Copy the location's watchpoint type.
8286 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
8287 handle read watchpoints here.
8288 (i386_insert_watchpoint): Read watchpoints aren't supported.
8289 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
8290 packets.
8291 * target.h (target_insert_watchpoint): Update description.
8292
48ea67a7
TT
82932010-02-19 Tom Tromey <tromey@redhat.com>
8294
8295 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
8296 * m2-typeprint.c (m2_print_type): Update.
8297 * gdbtypes.c (recursive_dump_type): Update.
8298 (copy_type_recursive): Update.
8299 * c-typeprint.c (c_type_print_varspec_prefix): Update.
8300 (c_type_print_base): Update.
8301 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
8302 Remove.
8303 (struct cplus_struct_type) <ntemplate_args>: Remove.
8304 <struct template_arg>: Remove.
8305 <is_dynamic>: Move earlier.
8306 (TYPE_TEMPLATE_ARGS): Remove.
8307 (TYPE_NTEMPLATE_ARGS): Remove.
8308 (TYPE_TEMPLATE_ARG): Remove.
8309
48e32051
TT
83102010-02-19 Tom Tromey <tromey@redhat.com>
8311
8312 PR c++/8693, PR c++/9496:
8313 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
8314 * c-exp.y (lex_one_token): Rename from yylex. Don't call
8315 write_dollar_variable. Don't try to classify NAME tokens.
8316 (token_and_value): New type.
8317 (token_fifo, popping, name_obstack): New globals.
8318 (classify_name): New function.
8319 (classify_inner_name): Likewise.
8320 (yylex): Likewise.
8321 (VARIABLE): Now has type sval.
8322 (exp : VARIABLE): Call write_dollar_variable.
8323 (qualified_name): Use TYPENAME, not typebase. Add production for
8324 multiple "::" instances.
8325 (variable): Use name_not_typename.
8326 (qualified_type): Remove.
8327 (typebase): Update.
8328
672d9c23
JK
83292010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8330
8331 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
8332 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
8333 found by bfd_get_section_by_name.
8334 * symfile.h (struct section_addr_info) <sectindex>: New comment.
8335
bfbf3774
JB
83362010-02-19 Joel Brobecker <brobecker@adacore.com>
8337
8338 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
8339 7.0 section" into "Changes in 7.1".
8340
6756b09b 83412010-02-19 Joel Brobecker <brobecker@adacore.com>
8342
8343 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
8344 * version.in: Bump version to 7.1.50.20100219-cvs.
8345
202b96c1
PA
83462010-02-18 Harald Koenig <H.Koenig@science-computing.de>
8347
8348 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
8349 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
8350
de2e5182
TT
83512010-02-17 Tom Tromey <tromey@redhat.com>
8352
8353 * NEWS: Add Python API Improvements section.
8354
7280022e
DJ
83552010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
8356
8357 * NEWS: Correct typo.
8358
6f451e5e
TT
83592010-02-17 Tom Tromey <tromey@redhat.com>
8360
8361 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
8362
012836ea
JK
83632010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8364
8365 * symfile.c (build_section_addr_info_from_objfile): Include sections
8366 only if they are SEC_ALLOC or SEC_LOAD.
8367
d182d057
L
83682010-02-17 H.J. Lu <hongjiu.lu@intel.com>
8369
8370 PR shlibs/11293
8371 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
8372 of ULONGEST for address size.
8373
4eef138c
TT
83742010-02-17 Tom Tromey <tromey@redhat.com>
8375
8376 * NEWS: Add C++ improvements section.
8377
548a926a
UW
83782010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
8379
8380 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
8381 PyThreadState_Swap): Avoid "statement with no effect" warning.
8382
ad3a0e5b
JK
83832010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8384
8385 * solib-svr4.c (enable_break <target_auxv_search>): New variable
8386 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
8387
243e2c5d 83882010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 8389 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
8390
8391 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
8392 gdb_assert. Fix info->size for SIG prologue.
8393
275f2e57
DJ
83942010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8395
8396 * infcmd.c (show_inferior_tty_command): Check for NULL.
8397 Correct output message.
8398
791dfb64
DJ
83992010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8400
8401 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
8402 FUNCTION contains parentheses. Improve removal of a trailing
8403 single quote.
8404
14d1346b
DJ
84052010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8406
8407 * gcore.c (do_bfd_delete_cleanup): New function.
8408 (gcore_command): Use it. Discard the cleanup after success.
8409 (gcore_copy_callback): Delete dead code.
8410
e76ab67f
DJ
84112010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8412
8413 * symfile.c (addr_info_make_relative): Always use
8414 find_lowest_section.
8415
71dee663
SW
84162010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
8417
8418 * NEWS: Added entry for namespace fixes.
8419
a9854bd5
TT
84202010-02-15 Tom Tromey <tromey@redhat.com>
8421
8422 * dwarf2read.c (guess_structure_name): Allocate name on the
8423 objfile obstack.
8424
fd9e29b5
TT
84252010-02-15 Tom Tromey <tromey@redhat.com>
8426
8427 * c-typeprint.c (c_type_print_base): Reverse order of test.
8428
4e1fc9c9
JK
84292010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8430
8431 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
8432 initialize it from ELF BFD. Extend the prelink condition by it.
8433
74164c56
JK
84342010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8435
8436 * defs.h (parse_pid_to_attach): New.
8437 * utils.c (parse_pid_to_attach): New.
8438 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
8439 * gnu-nat.c (gnu_attach): Likewise.
8440 * nto-procfs.c (procfs_attach): Likewise.
8441 * procfs.c (procfs_attach): Likewise.
8442 * windows-nat.c (windows_attach): Likewise.
8443 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
8444 * inf-ttrace.c (inf_ttrace_attach): Likewise.
8445 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
8446 check.
8447
bf6adea8
MM
84482010-02-14 Masaki Muranaka <monaka@monami-software.com>
8449
8450 * MAINTAINERS: Add myself for write after approval privileges.
8451
28f34a8f
JK
84522010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8453
8454 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
8455 block.
8456
701ed6dc
JK
84572010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8458
8459 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
8460 only if INFO_VERBOSE.
8461
e5829bee
MS
84622010-02-12 Tomas Holmberg <th@virtutech.com>
8463
8464 * mi/mi-main.c: Added the --reverse flag to the following MI
8465 commands: exec-continue, exec-finish, exec-next, exec-step,
8466 exec-next-instruction, exec-step-instruction. This is to
8467 support reverse execution over the MI interface to gdb.
8468
081dfbf7
PA
84692010-02-12 Pedro Alves <pedro@codesourcery.com>
8470
8471 * tracepoint.c (_initialize_tracepoint): Specify that the address
8472 range of `tfind outsize' is exclusive, and that the address range
8473 of `tfind range' is inclusive, in the commands' help strings.
8474
ecc13e53
JB
84752010-02-12 Joel Brobecker <brobecker@adacore.com>
8476
8477 Spurious "dll not found" error messages on x64-windows.
8478 * windows-nat.c: Add include of complaints.h.
8479 (handle_unload_dll): Change dll-not-found error into a complaint.
8480
15c3d785
PA
84812010-02-12 Pedro Alves <pedro@codesourcery.com>
8482
8483 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
8484 bp_tracepoint and bp_fast_tracepoint, not
8485 bp_loc_software_breakpoint.
8486 (update_global_location_list): Tracepoints are never duplicates of
8487 anything.
8488
fd9b8c24
PA
84892010-02-12 Pedro Alves <pedro@codesourcery.com>
8490
8491 * breakpoint.c (break_command_really): Change return type to int.
8492 Return false if no breakpoint was created, true otherwise.
8493 (trace_command): Don't set the tracepoint count if no tracepoint
8494 was created.
8495 (ftrace_command): Ditto.
8496 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
8497 created in the breakpoints table.
8498
5c0d192f
JK
84992010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8500 Ulrich Weigand <uweigand@de.ibm.com>
8501
8502 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
8503
5d5b640e
PA
85042010-02-11 Pedro Alves <pedro@codesourcery.com>
8505
8506 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
8507 the offset value isn't of integral type.
8508
e5a0a904
JK
85092010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8510
8511 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
8512 New.
8513
be636754
PA
85142010-02-11 Pedro Alves <pedro@codesourcery.com>
8515
8516 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
8517 non-subscriptable types.
8518 * valarith.c (binop_types_user_defined_p): New, abstracted out
8519 from ...
8520 (binop_user_defined_p): ... this.
8521 * value.h (binop_types_user_defined_p): Declare.
8522
10ef8d6a
PA
85232010-02-11 Pedro Alves <pedro@codesourcery.com>
8524
8525 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
8526 Merge uploaded TSVs before merging uploaded tracepoints.
8527
b1028c8e
PA
85282010-02-11 Pedro Alves <pedro@codesourcery.com>
8529
8530 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
8531
7a93fb82 85322010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 8533
7a93fb82
VP
8534 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
8535 whitespace character after a dot in comment.
8536 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
8537 Likewise.
8538 (list_args_or_locals): For the 'all' (that is
8539 -stack-list-variables) case, always output list of tuples.
8540 Output 'arg' field if variable is argument.
84d90c10 8541
92981e24
TT
85422010-02-10 Tom Tromey <tromey@redhat.com>
8543
8544 * parser-defs.h (parser_debug): Declare.
8545 * parse.c (_initialize_parse): Install "debug parser" set/show
8546 command.
8547 (parser_debug): New global.
8548 (show_parserdebug): New function.
8549 * c-exp.y (c_parse): Set yydebug.
8550
9fd3625f
L
85512010-02-10 H.J. Lu <hongjiu.lu@intel.com>
8552
8553 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
8554 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8555 (tdesc_predefined_types): Add i387_ext, i386_eflags and
8556 i386_mxcsr.
8557 (tdesc_find_type): New.
8558 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
8559 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8560
8561 * target-descriptions.h (tdesc_find_type): New.
8562
2fe842e5
MS
85632010-02-10 Michael Snyder <msnyder@vmware.com>
8564
8565 * gdb-gdb.py: Comment fix.
8566
f18b4cab
TG
85672010-02-09 Tristan Gingold <gingold@adacore.com>
8568
8569 * machoread.c (macho_symfile_relocate): New function.
8570 (macho_sym_fns): Use macho_symfile_relocate instead of
8571 default_symfile_relocate.
8572 (macho_oso_data): New type.
8573 (current_oso): New variable.
8574 (macho_add_oso_symfile): Do not compute section_addr_info, but
8575 instead set vma of sections.
8576 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
8577 Set and clear current_oso.
8578
31dbc1c5
JB
85792010-02-09 Joel Brobecker <brobecker@adacore.com>
8580
8581 Wrong type description for tagged type parameter.
8582 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
8583 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
8584 reference to a tagged type.
8585
399f313b
TG
85862010-02-09 Tristan Gingold <gingold@adacore.com>
8587
8588 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
8589 brothers of the parent.
8590
714f19d5
TT
85912010-02-08 Tom Tromey <tromey@redhat.com>
8592
8593 PR c++/8017:
8594 * value.h: Update.
8595 * valops.c (search_struct_field): Make 'name' const.
8596 (search_struct_method): Likewise.
8597 (find_method_list): Make 'method' const.
8598 (value_struct_elt): Make 'name' and 'err' const.
8599 (value_find_oload_method_list): Make 'method' const.
8600 (find_overload_match): Make 'name' const.
8601 * eval.c (evaluate_subexp_standard): New locals function,
8602 function_name.
8603 <OP_FUNCALL>: Handle OP_SCOPE specially.
8604
de0a0249
UW
86052010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8606
8607 * infrun.c (handle_inferior_event): Do not look up regcache
8608 for exited processes.
8609
8d95cc3b 86102010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
8611
8612 PR gdb/10728
8613 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 8614 warn if found, and assume length = 1.
83b10087 8615
99903ae3
CM
86162010-02-08 Chris Moller <cmoller@redhat.com>
8617
8618 PR gdb/9067
8619 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 8620 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 8621
e3e9f5a2
PA
86222010-02-08 Pedro Alves <pedro@codesourcery.com>
8623
8624 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
8625 resumed LWPs as resumed.
8626 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
8627 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
8628 of throwing an internal error. If an LWP of a process we're not
8629 waiting for reports a signal, don't force collecting a SIGSTOP,
8630 and if it was breakpoint hit in non-stop mode, cancel it. Don't
8631 go through all LWPs cancelling breakpoints in non-stop mode.
8632 (resume_stopped_resumed_lwps): New.
8633 (linux_nat_wait): Use it.
8634
46763423
L
86352010-02-07 H.J. Lu <hongjiu.lu@intel.com>
8636
8637 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
8638 i386/amd64 and i386/amd64-linux.
8639 (i386/i386-expedite): New.
8640 (i386/i386-linux-expedite): Likewise.
8641 (i386/amd64-expedite):Likewise.
8642 (i386/amd64-linux-expedite): Likewise.
8643 ($(outdir)/i386/i386-linux.dat): Likewise.
8644 ($(outdir)/i386/amd64.dat): Likewise.
8645 ($(outdir)/i386/amd64-linux.dat): Likewise.
8646
8647 * features/i386/32bit-core.xml: New.
8648 * features/i386/32bit-linux.xml: Likewise.
8649 * features/i386/32bit-sse.xml: Likewise.
8650 * features/i386/64bit-core.xml: Likewise.
8651 * features/i386/64bit-linux.xml: Likewise.
8652 * features/i386/64bit-sse.xml: Likewise.
8653 * features/i386/i386-linux.xml: Likewise.
8654 * features/i386/i386.xml: Likewise.
8655 * features/i386/amd64-linux.xml: Likewise.
8656 * features/i386/amd64.xml: Likewise.
8657 * features/i386/i386-linux.c: Likewise.
8658 * features/i386/i386.c: Likewise.
8659 * features/i386/amd64-linux.c: Likewise.
8660 * features/i386/amd64.c: Likewise.
8661
82856980
SW
86622010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
8663
8664 PR c++/7935:
8665 * cp-support.h: Added char* alias element to using_direct data
8666 struct.
8667 (cp_add_using): Added char* alias argument.
8668 (cp_add_using_directive): Ditto.
8669 * cp-namespace.c: Updated with the above changes.
8670 (cp_lookup_symbol_imports): Check for aliases.
8671 * dwarf2read.c (read_import_statement): Figure out local alias
8672 for the import and pass it on to cp_add_using.
8673 (read_namespace): Pass alias argument to cp_add_using.
8674
d18b8b7a
HZ
86752010-02-05 Hui Zhu <teawater@gmail.com>
8676
8677 * defs.h (gdb_bfd_errmsg): New extern.
8678 * exec.c (exec_file_attach): Change bfd_errmsg to
8679 gdb_bfd_errmsg.
8680 * utils.c (AMBIGUOUS_MESS1): New macro.
8681 (AMBIGUOUS_MESS2): New macro.
8682 (gdb_bfd_errmsg): New function.
8683
48379de6
DE
86842010-02-04 Doug Evans <dje@google.com>
8685
8686 * solib-svr4.c (enable_break): Add comment.
8687
4ee73e90
AG
86882010-02-04 Anthony Green <green@moxielogic.com>
8689
8690 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
8691 gracefully.
8692
1a334831
TT
86932010-02-04 Tom Tromey <tromey@redhat.com>
8694
8695 * valops.c (search_struct_field): Account for
8696 value_embedded_offset. Fix check for virtual base past the end of
8697 the object. Use value_copy when making a slice of the value.
8698
1180b2c8
L
86992010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8700
8701 PR tui/9622
8702 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
8703 only if gdb_stdout is a tty.
8704
c3f08eb7
L
87052010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8706
8707 * target-descriptions.c: Include "osabi.h".
8708 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
8709 OSABI.
8710
2d33f7b8
TG
87112010-02-04 Tristan Gingold <gingold@adacore.com>
8712
8713 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
8714 (macho_symtab_read): Adjust calls to macho_add_oso.
8715 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
8716 (macho_symfile_read): Adjust call to macho_oso_symfile.
8717 (macho_new_init): Move this function after declarations.
8718 (macho_symfile_init): Ditto.
8719 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
8720 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
8721
11334b82
VP
87222010-02-04 Vladimir Prus <vladimir@codesourcery.com>
8723
8724 Include MI command in remotelog.
8725
8726 * mi/mi-main.c (mi_execute_command): Call target_log_command.
8727
ff97be06
L
87282010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8729
8730 * remote.c (remote_state): Remove gdbarch.
8731 (init_remote_state): Don't set gdbarch.
8732 (remote_query_supported): Pass target_gdbarch instead of
8733 rs->gdbarch to gdbarch_qsupported.
8734
75cebea9
L
87352010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8736
8737 * gdbarch.sh: Add qsupported.
8738
8739 * gdbarch.c: Regenerated.
8740 * gdbarch.h: Likewise.
8741
8742 * remote.c (remote_state): Add gdbarch.
8743 (init_remote_state): Set gdbarch.
8744 (remote_query_supported): Support gdbarch_qsupported.
8745
c1dec97b
DJ
87462010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
8747
8748 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
8749 __FreeBSD_kernel_version.
8750
ac8035ab
TG
87512010-02-03 Tristan Gingold <gingold@adacore.com>
8752
8753 * symfile.h (struct sym_fns): Add sym_relocate field.
8754 (default_symfile_relocate): New prototype.
8755 (symfile_relocate_debug_section): First argument is now an objfile.
8756 * symfile.c (default_symfile_relocate): Rename from
8757 symfile_relocate_debug_section, first argument is now an objfile.
8758 (symfile_relocate_debug_section): New function.
8759 * coffread.c (coff_sym_fns): Set sym_relocate field.
8760 * somread.c (som_sym_fns): Ditto.
8761 * mipsread.c (ecoff_sym_fns): Ditto.
8762 * machoread.c (macho_sym_fns): Ditto.
8763 * elfread.c (elf_sym_fns): Ditto.
8764 * dwarf2read.c (dwarf2_read_section): Ditto.
8765 * xcoffread.c (xcoff_sym_fns): Ditto.
8766 * dbxread.c (aout_sym_fns): Ditto.
8767 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
8768 (elfstab_build_psymtabs): Ditto.
8769
be52b756
L
87702010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8771
8772 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
8773
9c3c02fd
TT
87742010-02-02 Tom Tromey <tromey@redhat.com>
8775
8776 * valops.c (value_cast_structs): Try downcasting using the RTTI
8777 type.
8778
f23f4c59
TT
87792010-02-02 Tom Tromey <tromey@redhat.com>
8780
8781 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
8782 (gnuv2_baseclass_offset): Now static.
8783 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
8784 * gnu-v2-abi.h: Remove.
8785
0cc2414c
TT
87862010-02-02 Tom Tromey <tromey@redhat.com>
8787
8788 * m2-typeprint.c (m2_record_fields): Don't use
8789 TYPE_DECLARED_TYPE.
8790 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
8791 (struct main_type) <flag_declared_class>: New field.
8792 (struct cplus_struct_type) <declared_type>: Remove.
8793 <ntemplate_args>: Move earlier.
8794 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
8795 (DECLARED_TYPE_TEMPLATE): Remove.
8796 (TYPE_DECLARED_TYPE): Remove.
8797 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
8798 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
8799 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
8800 TYPE_DECLARED_TYPE.
8801
edf3d5f3
TT
88022010-02-02 Tom Tromey <tromey@redhat.com>
8803
8804 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
8805 * valops.c (search_struct_field): Compute nbases after calling
8806 CHECK_TYPEDEF.
8807 (check_field): Call CHECK_TYPEDEF.
8808 * cp-valprint.c (cp_print_value): Pass correct address to
8809 baseclass_offset. Fix check for virtual base past the end of the
8810 object. Don't offset address passed to cp_print_value_fields or
8811 apply_val_pretty_printer.
8812 (cp_print_value_fields): Fix call to val_print.
8813 (cp_print_value_fields_rtti): New function.
8814 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
8815 * p-valprint.c (pascal_object_print_value_fields): Fix call to
8816 val_print.
8817 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
8818 offset to address.
8819 * language.h (struct language_defn) <la_val_print>: Document.
8820 * c-lang.h (cp_print_value_fields_rtti): Declare.
8821
e4b7f41c
JK
88222010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8823
8824 PR libc/11214:
8825 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8826 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
8827 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8828
7618e12b
DJ
88292010-02-01 Michael Matz <matz@suse.de>
8830 Daniel Jacobowitz <dan@codesourcery.com>
8831
e4b7f41c 8832 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
8833 functions use a frame pointer.
8834
b381ea14
JK
88352010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8836
8837 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
8838 by a conditional setting DYN_ADDR. Use DYN_ADDR.
8839 * config/djgpp/fnchange.lst: Add translations for
8840 symbol-without-target_section.exp and symbol-without-target_section.c.
8841
0e05dfcb
DJ
88422010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8843
8844 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
8845 (remote_breakpoint_for_pc): Correct invalid_p check.
8846 * gdbarch.c: Regenerated.
8847
f9d67f43
DJ
88482010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8849
8850 * arm-tdep.c (arm_find_mapping_symbol): New function, from
8851 arm_pc_is_thumb.
8852 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
8853 (extend_buffer_earlier): New function.
8854 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
8855 (arm_adjust_breakpoint_address): New function.
8856 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
8857
177321bd
DJ
88582010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8859
8860 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
8861 (arm_linux_thumb2_le_breakpoint): New constants.
8862 (arm_linux_init_abi): Set thumb2_breakpoint and
8863 thumb2_breakpoint_size.
8864 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
8865 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
8866 Implement support for single stepping through IT blocks if
8867 a 32-bit Thumb breakpoint instruction is available.
8868 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
8869 is available, use it when needed.
8870 (arm_remote_breakpoint_from_pc): New function.
8871 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
8872 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
8873 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
8874
a1dcb23a
DJ
88752010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8876
8877 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
8878 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
8879 * gdbarch.c, gdbarch.h: Regenerated.
8880 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
8881 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
8882 gdbarch_remote_breakpoint_from_pc.
8883
2b009048
DJ
88842010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8885
8886 * infrun.c (prepare_to_proceed): Handle other signals which might
8887 match a breakpoint.
8888 (handle_inferior_event): Move the check for unusual breakpoint
8889 signals earlier.
8890
e4e2711a
JB
88912010-01-29 Paul Hilfinger <hilfinger@adacore.com>
8892
8893 amd64 - function returning record with field straddling 2 registers.
8894 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
8895 a record of length <= 16 in which a field straddles the two
8896 eightbytes.
8897
cba6fab5
JB
88982010-01-29 Joel Brobecker <brobecker@adacore.com>
8899
8900 Implement return values on amd64-windows.
8901 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
8902 (amd64_windows_return_value): New function.
8903 (amd64_windows_init_abi): Call set_gdbarch_return_value with
8904 amd64_windows_return_value.
8905
3af6ddfe
JB
89062010-01-29 Joel Brobecker <brobecker@adacore.com>
8907
8908 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 8909 parameter registers.
3af6ddfe
JB
8910 * i386-tdep.h (struct gdbarch_tdep): Add new field
8911 integer_param_regs_saved_in_caller_frame.
8912 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8913 tdep->integer_param_regs_saved_in_caller_frame to 1.
8914 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
8915 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
8916
80d19a06
JB
89172010-01-29 Joel Brobecker <brobecker@adacore.com>
8918
8919 amd64-windows: memory args passed by pointer during function calls.
8920 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
8921 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
8922 where tdep->memory_args_by_pointer is non-zero.
8923 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8924 tdep->memory_args_by_pointer to 1.
8925
ba581dc1
JB
89262010-01-29 Joel Brobecker <brobecker@adacore.com>
8927
4966b6c2 8928 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
8929 * i386-tdep.h (enum amd64_reg_class): New, moved here from
8930 amd64-tdep.c.
8931 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
8932 call_dummy_integer_regs, and classify.
8933 * amd64-tdep.h (amd64_classify): Add declaration.
8934 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
8935 (amd64_reg_class): Delete, moved to i386-tdep.h.
8936 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
8937 Replace call to amd64_classify by call to tdep->classify.
8938 (amd64_push_arguments): Get the list of registers to use for
8939 passing integer parameters from the gdbarch tdep structure,
8940 rather than using a hardcoded one. Replace calls to amd64_classify
8941 by calls to tdep->classify.
8942 (amd64_push_dummy_call): Get the register number used for
8943 the "hidden" argument from tdep->call_dummy_integer_regs.
8944 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
8945 and tdep->call_dummy_integer_regs. Set tdep->classify.
8946 * amd64-windows-tdep.c: Add include of gdbtypes.h.
8947 (amd64_windows_dummy_call_integer_regs): New static global.
8948 (amd64_windows_classify): New function.
8949 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
8950 tdep->call_dummy_integer_regs and tdep->classify.
8951
d37346f0
DJ
89522010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
8953
8954 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
8955 for the new regcache. All callers updated.
8956 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
8957 (get_thread_arch_regcache): Do not set aspace here.
8958 * regcache.h (regcache_xmalloc): Update declaration.
8959
8960 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
8961 regcache_xmalloc updated.
8962
7434dadd
JB
89632010-01-28 Joel Brobecker <brobecker@adacore.com>
8964
8965 Another -Wunused-function error in procfs.c (sparc-solaris)
8966 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
8967 Only define if SYS_syssgi is defined.
8968 (remove_dbx_link_breakpoint): Delete declaration. Move up.
8969 (dbx_link_addr, insert_dbx_link_bpt_in_file)
8970 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
8971 is itself defined.
8972
16d905e2
CF
89732010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
8974
8975 * windows-nat.c (windows_initialization_done): New variable.
8976 (get_windows_debug_event): Issue error when process dies before
8977 completely initializing.
8978 (do_initial_windows_stuff): Set flag to indicate when we are done with
8979 the initial steps of attaching to the child.
8980
cd55e50f
JK
89812010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8982
8983 * symtab.h (struct symbol <symtab>): New comment on NULL values.
8984
99cc78aa
DE
89852010-01-27 Doug Evans <dje@google.com>
8986
4c7dcb84
DE
8987 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
8988
99cc78aa
DE
8989 * breakpoint.c (bpstat_stop_status): Delete useless code.
8990
52334bf5
JK
89912010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8992
8993 * printcmd.c (display_uses_solib_p): Remove variable section. Access
8994 objfile via SYMBOL_SYMTAB.
8995
708ead4e
TT
89962010-01-26 Tom Tromey <tromey@redhat.com>
8997
8998 PR exp/7643:
8999 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9000 coerce_array on result.
9001
b14e635e
SW
90022010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9003
9004 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9005 search_parent argument.
9006 (cp_add_using): Initialize 'searched' field.
9007 (reset_directive_searched): New function.
9008 * cp-support.h: Add 'searched' field to using_direct struct.
9009 (cp_lookup_symbol_imports): Ditto.
9010 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9011 Perform recursive search.
9012 Implement non parent search.
9013 * valops.c (value_maybe_namespace_elt): Updated.
9014
8540c487
SW
90152010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9016
9017 PR gdb/10929:
9018 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9019 scopes which contain using directives even if they contain no
9020 declarations.
9021 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9022 la_lookup_symbol_nonlocal.
9023 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9024 cp_lookup_symbol_namespace.
9025 (cp_lookup_symbol_namespace): Perform an import lookup at every
9026 block level.
9027 (cp_lookup_symbol_imports): New function.
9028 (cp_lookup_symbol_in_namespace): New function.
9029
421d5d99
TT
90302010-01-25 Tom Tromey <tromey@redhat.com>
9031
9032 PR gdb/11049:
9033 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9034 result.
9035
6bcc772d
RO
90362010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9037
9038 * configure.ac: Only use host_os part when disabling TUI on osf.
9039 Use test to check variables, prefix strings with x.
9040 * configure: Regenerate.
9041
9042 * solib-osf.c (osf_current_sos): Initialize tail.
9043
1c1238a5
TG
90442010-01-25 gingold <gingold@adacore.com>
9045
c8d5aac9
L
9046 * windows-nat.c (windows_continue): Use %x to print thread id.
9047 (get_windows_debug_event): Ditto.
1c1238a5 9048
0b92b5bb
TT
90492010-01-22 Tom Tromey <tromey@redhat.com>
9050
9051 PR symtab/11199:
9052 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9053 type and arguments. Use smash_to_methodptr_type.
9054 (read_structure_type): Call quirk_gcc_member_function_pointer
9055 later.
9056 * gdbtypes.h (smash_to_methodptr_type): Declare.
9057 * gdbtypes.c (smash_to_methodptr_type): New function.
9058 (lookup_methodptr_type): Use it.
9059
0d5392b8
TT
90602010-01-21 Tom Tromey <tromey@redhat.com>
9061
9062 PR symtab/11198:
9063 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
9064 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
9065 * glibc-tdep.c (find_minsym_and_objfile): Remove.
9066 (glibc_skip_solib_resolver): Use
9067 lookup_minimal_symbol_and_objfile.
9068
e6d088ec
KT
90692010-01-21 Kai Tietz <kai.tietz@onevision.com>
9070
9071 * inflow.c (check_syscall): Guard by #if clause for GO32 and
9072 WIN32 targets.
9073
b966cb8a
TT
90742010-01-20 Tom Tromey <tromey@redhat.com>
9075
9076 PR backtrace/10770:
9077 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9078 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
9079 * dwarf2expr.c (new_dwarf_expr_context): Allocate
9080 dwarf_stack_values, not CORE_ADDRs.
9081 (execute_stack_op): Change DW_OP_div and comparison operators to
9082 use signed operands.
9083
3f81c18a
VP
90842010-01-20 Vladimir Prus <vladimir@codesourcery.com>
9085
9086 Per-inferior args and tty and environment.
9087
9088 * infcmd.c (inferior_args): Rename to ...
9089 (inferior_args_scratch): ... this.
9090 (inferior_io_terminal): Rename to ...
9091 (inferior_io_terminal_scratch): ... this.
9092 (inferior_argc, inferior_argv): Remove.
9093 (set_inferior_io_terminal, get_inferior_io_terminal): Store
9094 inside current_inferior().
9095 (set_inferior_tty_command, show_inferior_tty_command): New.
9096 (get_inferior_args, set_inferior_args): Store inside
9097 current_inferior().
9098 (notice_args_set): Likewise and rename to...
9099 (set_args_command): ... this.
9100 (set_inferior_args_vector): Likewise.
9101 (notice_args_read): Rename to...
9102 (show_args_command): ...new.
9103 (tty_command): Remove.
9104 (run_command_1): Don't free old args, as they are freed by
9105 set_inferior_arg now.
9106 (run_no_args_command): Likewise.
9107 (inferior_environ): Remove.
9108 (run_command_1): Use environment of the current inferior.
9109 (environment_info, set_environment_command)
9110 (unset_environment_command, path_info, path_command): Likewise.
9111 (_initialize_infcmd): Adjust for function and variable renames.
9112 Do not init inferior_environ.
9113 * inferior.h (set_inferior_arg): Adjust prototype.
9114 (struct inferior): New fields args, argc, argv, terminal, environment.
9115 (inferior_environ): Remove declaration.
9116 * inferior.c (free_inferior): Free new fields.
9117 (add_inferior_silent): Initialize 'environment' field.
9118 * main.c (captured_main): Set arguments only after the initial
9119 inferior has been created. Set set_inferior_io_terminal,
9120 not tty_command.
9121 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
9122 inferior.
9123 (_initialize_mi_cmd_env): Adjust for disappearance of global
9124 inferior_environ.
9125 * solib.c (solib_find): Use environment of the current inferior.
9126
d8b65138
JK
91272010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9128
9129 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
9130 HAVE_PYTHON.
9131 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
9132
692465f1
JB
91332010-01-20 Joel Brobecker <brobecker@adacore.com>
9134
9135 Get rid of ada-lang.c:function_name_from_pc.
9136 * ada-lang.c: Add "stack.h" #include.
9137 (function_name_from_pc): Delete.
9138 (is_known_support_routine): Replace call to function_name_from_pc
9139 by call to find_frame_funname.
9140 (ada_unhandled_exception_name_addr_from_raise): Likewise.
9141
95519e0e
TT
91422010-01-19 Tom Tromey <tromey@redhat.com>
9143
9144 PR c++/11026:
9145 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
9146 objfile obstack.
9147
95c11dc7
TT
91482010-01-19 Tom Tromey <tromey@redhat.com>
9149
9150 * top.c (stop_sig, float_handler, do_nothing): Remove.
9151
a0f49112
JK
91522010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9153
9154 * breakpoint.c (watchpoint_check): Check the call
9155 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
9156 Extend the comment.
8d95cc3b 9157 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
9158 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
9159 watchpoint-cond-gone-stripped.c.
9160
ceeb3d5a
TT
91612010-01-19 Tom Tromey <tromey@redhat.com>
9162
9163 PR c++/8000:
9164 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
9165 into parent scope, and enumerator into grandparent scope.
9166
2b71fc8e
JB
91672010-01-19 Joel Brobecker <brobecker@adacore.com>
9168
9169 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
9170
03564ed9
JB
91712010-01-19 Joel Brobecker <brobecker@adacore.com>
9172
9173 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
9174 i[34567]86-*-solaris2.1[0-9]*.
9175 * configure.tgt: Likewise.
9176
fb2e7cb4
JB
91772010-01-19 Joel Brobecker <brobecker@adacore.com>
9178
9179 * NEWS: Document the source command enhancement allowing it
9180 to load Python scripts. Document the "set/show script-extension"
9181 commands.
9182
1cb5e2a4
JB
91832010-01-19 Joel Brobecker <brobecker@adacore.com>
9184
9185 Add -Wunused-function to compile flags.
9186 * configure.ac: Add -Wunused-function to build_warnings.
9187 * configure: Regenerate.
9188
0ec6cd0c
JB
91892010-01-19 Joel Brobecker <brobecker@adacore.com>
9190
9191 "delete" ada-lex.c:input function, not used.
9192 * ada-lex.l: #define YY_NO_INPUT.
9193
b74845da
JB
91942010-01-19 Joel Brobecker <brobecker@adacore.com>
9195
9196 Delete free_named_symtabs and associated cleanup.
9197 * symfile.h (free_named_symtabs): Delete declaration.
9198 * symfile.c: Remove some commented out code (clear_symtab_users_once).
9199 (cashier_psymtab): Comment function out.
9200 Delete declaration.
9201 (free_named_symtabs): Delete.
9202 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
9203 * dbxread.c (end_psymtab): Likewise.
9204 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
9205 * exec.c (exec_close_1): Ditto.
9206 * xcoffread.c (xcoff_end_psymtab): Likewise.
9207
65c06092
JB
92082010-01-19 Joel Brobecker <brobecker@adacore.com>
9209
9210 * stack.c (print_block_frame_labels): Comment function out.
9211
d5cd6034
JB
92122010-01-19 Joel Brobecker <brobecker@adacore.com>
9213
9214 Delete unused or undefined functions.
9215 * breakpoint.c (ep_parse_optional_filename): Delete.
9216 * dcache.c (dcache_write_line): Remove declaration.
9217 * infrun.c (build_infrun): Remove declaration.
9218 * tracepoint.c (tracepoint_save_command): Remove declaration.
9219 * linux-nat.c (init_lwp_list): Delete. No longer used.
9220 * event-loop.c (check_async_signal_handlers): Delete declaration.
9221 * infrun.c (init_execution_control_state): Delete.
9222 (proceed): Update comment to avoid mentioning
9223 init_execution_control_state.
9224 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
9225 * ada-lang.c (ada_to_static_fixed_value): Delete.
9226 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
9227 * cp-namespace.c (cp_copy_usings): Delete.
9228 * xml-syscall.c (xml_number_of_syscalls): Delete.
9229 * progspace.c (find_program_space_by_num): Delete.
9230 * inflow.c (handle_sigio): Delete declaration.
9231 * hppa-tdep.c (hppa_alignof): Delete.
9232 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
9233 (mipsnbsd_core_osabi_sniffer): Delete.
9234
4e8f195d
TT
92352010-01-18 Tom Tromey <tromey@redhat.com>
9236
9237 PR c++/9680:
9238 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
9239 (CONST_CAST): New tokens.
9240 (exp): Add new productions.
9241 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
9242 reinterpret_cast.
9243 (is_cast_operator): New function.
9244 (yylex): Handle cast operators specially.
9245 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
9246 UNOP_REINTERPRET_CAST>: New cases.
9247 * expprint.c (print_subexp_standard): Likewise.
9248 (op_name_standard): Likewise.
9249 (dump_subexp_body_standard): Likewise.
9250 * parse.c (operator_length_standard): Likewise.
9251 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
9252 UNOP_REINTERPRET_CAST.
9253 * gdbtypes.c (class_types_same_p): New function.
9254 (is_ancestor): Use it.
9255 (is_public_ancestor): New function.
9256 (is_unique_ancestor_worker): Likewise.
9257 (is_unique_ancestor): Likewise.
9258 * gdbtypes.h (class_types_same_p, is_public_ancestor)
9259 (is_unique_ancestor): Declare.
9260 * valops.c (value_reinterpret_cast): New function.
9261 (dynamic_cast_check_1): Likewise.
9262 (dynamic_cast_check_2): Likewise.
9263 (value_dynamic_cast): Likewise.
9264 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
9265
d9c57d9f
JB
92662010-01-18 Joel Brobecker <brobecker@adacore.com>
9267
9268 Fix build failure when building without Python support.
9269 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
9270 is not defined.
9271
f80d3ff2
JB
92722010-01-18 Joel Brobecker <brobecker@adacore.com>
9273
9274 Use XVS field type instead of doing a parallel lookup.
9275 * ada-lang.c (ada_get_base_type): Follow the XVS field type
9276 if it is a reference type instead of doing a type lookup using
9277 the XVS field name.
9278
5bf03f13
JB
92792010-01-18 Joel Brobecker <brobecker@adacore.com>
9280
9281 Trust PAD types instead of using PAD___XVS.
9282 * ada-lang.c (trust_pad_over_xvs): New static variable.
9283 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
9284 parallel XVS type, follow the XVS type instead of the PAD type.
9285 (unwrap_value): Make sure that there is no parallel XVE type
9286 before returning the value as is.
9287 (set_ada_list, show_ada_list): New static variables.
9288 (set_ada_command, show_ada_command): New functions.
9289 (_initialize_ada_language): Add new "set/show ada" prefix commands.
9290 Add new "set/show ada trust-PAD-over-XVS" setting.
9291
973817a3
JB
92922010-01-18 Tom Tromey <tromey@redhat.com>
9293 Thiago Jung Bauermann <bauerman@br.ibm.com>
9294
9295 Allow "source" to load python scripts.
9296 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
9297 * python/python.c (source_python_script): New function.
9298 * python/python.h (source_python_script): Add declaration.
9299 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
9300 (script_ext_off, script_ext_soft, script_ext_strict)
9301 (script_ext_enums, script_ext_mode): New static constants.
9302 (show_script_ext_mode, find_and_open_script): New functions.
9303 (source_script): Enhance to handle Python scripts.
9304 (init_cli_cmds): Add set/show script-extension commands.
9305
98e03262
SS
93062010-01-16 Stan Shebs <stan@codesourcery.com>
9307
9308 * tracepoint.h (struct trace_status): Use unsigned long long
9309 instead of size_t.
9310 * tracepoint.c (trace_status_command): Fix printf directive.
9311 (trace_save_command): Check fwrite returns, fix printf directive.
9312 (trace_filename): New global.
9313 (tfile_open): Set it, check read returns.
9314 (tfile_close): Free trace_filename.
9315 (tfile_get_traceframe_address): Check read returns.
9316 (tfile_trace_find): Ditto.
9317 (tfile_fetch_registers): Ditto.
9318 (tfile_xfer_partial): Ditto.
9319 (tfile_get_trace_state_variable_value): Ditto.
9320
00bf0b85
SS
93212010-01-15 Stan Shebs <stan@codesourcery.com>
9322
9323 Add trace file support.
9324 * tracepoint.h (enum trace_stop_reason): New enum.
9325 (struct trace_status): New struct.
9326 (parse_trace_status): Declare.
9327 (struct uploaded_tp): Move here from remote.c,
9328 add fields for actions.
9329 (struct uploaded_tsv): New struct.
9330 * tracepoint.c (tfile_ops): New target vector.
9331 (trace_fd): New global.
9332 (tfile_open): New function.
9333 (tfile_close): New function.
9334 (tfile_files_info): New function.
9335 (tfile_get_trace_status): New function.
9336 (tfile_get_traceframe_address): New function.
9337 (tfile_trace_find): New function.
9338 (tfile_fetch_registers): New function.
9339 (tfile_xfer_partial): New function.
9340 (tfile_get_trace_state_variable_value): New function.
9341 (init_tfile_ops): New function.
9342 (_initialize_tracepoint): Call it, add tfile target.
9343 (trace_status): New global.
9344 (current_trace_status): New function.
9345 (trace_running_p): Remove, change all users to get from
9346 current_trace_status()->running.
9347 (get_trace_status): Remove.
9348 (trace_status_command): Call target_get_trace_status directly,
9349 report more detail including tracing stop reasons.
9350 (trace_find_command): Always allow tfind on a file.
9351 (trace_find_pc_command): Ditto.
9352 (trace_find_tracepoint_command): Ditto.
9353 (trace_find_line_command): Ditto.
9354 (trace_find_range_command): Ditto.
9355 (trace_find_outside_command): Ditto.
9356 (trace_frames_offset, cur_offset): Declare as off_t.
9357 (trace_regblock_size): Rename from reg_size, update users.
9358 (parse_trace_status): New function.
9359 (tfile_interp_line): New function.
9360 (disconnect_or_stop_tracing): Ensure current trace
9361 status before asking what to do.
9362 (stop_reason_names): New global.
9363 (trace_save_command): New command.
9364 (get_uploaded_tp): Move here from remote.c.
9365 (find_matching_tracepoint): Ditto.
9366 (merge_uploaded_tracepoints): New function.
9367 (parse_trace_status): Use stop_reason_names.
9368 (_initialize_tracepoint): Define tsave command.
9369 * target.h (target_ops): New fields to_save_trace_data,
9370 to_upload_tracepoints, to_upload_trace_state_variables,
9371 to_get_raw_trace_data, change to_get_trace_status
9372 to take a pointer to a status struct.
9373 (target_save_trace_data): New macro.
9374 (target_upload_tracepoints): New macro.
9375 (target_upload_trace_state_variables): New macro.
9376 (target_get_raw_trace_data): New macro.
9377 * target.c (update_current_target): Add new methods, change
9378 signature of to_get_trace_status.
9379 * remote.c (hex2bin): Make globally visible.
9380 (bin2hex): Ditto.
9381 (remote_download_trace_state_variable): Download name also.
9382 (remote_get_trace_status): Update parameter, use
9383 parse_trace_status.
9384 (remote_save_trace_data): New function.
9385 (remote_upload_tracepoints): New function.
9386 (remote_upload_trace_state_variables): New function.
9387 (remote_get_raw_trace_data): New function.
9388 (remote_start_remote): Use them.
9389 (_initialize_remote_ops): Add operations.
9390 * ax-gdb.c: Include breakpoint.h.
9391 * breakpoint.c (create_tracepoint_from_upload): Use
9392 break_command_really, return tracepoint, warn about unimplemented
9393 parts.
9394 * NEWS: Mention trace file addition.
9395
d904de5b
JK
93962010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9397
9398 Fix compilation warning on gcc-3.4.
9399 * exec.c (print_section_info): Move the `displacement' variable
9400 initialization to its declaration.
9401
64aa9731
JK
94022010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9403
9404 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
9405 comparison.
9406
ca1f5def 94072010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
9408
9409 "info tasks" broken by typedefs in ATCB type definitions.
9410 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
9411 ada_check_typedef before retrieving the length of the type for
9412 regular fields.
9413
12ab9e09
JB
94142010-01-15 Joel Brobecker <brobecker@adacore.com>
9415
9416 Do not use name-based lookup for unconstrained packed arrays.
9417 * ada-lang.c (find_parallel_type_by_descriptive_type):
9418 Limit the fallback to name-based lookups to the case where
9419 the type is a constrained packed array.
9420
c389c3dc
JB
94212010-01-15 Joel Brobecker <brobecker@adacore.com>
9422
9423 Enhance gdb-gdb.py to handle main_type.type_specific.
9424 * gdb-gdb.py: Print the type-specific part of struct main_type.
9425
7991dee7
JK
94262010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9427
9428 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
9429 * configure: Regenerate.
9430 * config.in: Regenerate.
9431 * utils.c: Include sys/resource.h.
9432 (dump_core, can_dump_core): New.
9433 (internal_vproblem): Update the comment. Check can_dump_core while
9434 setting dump_core_p. Replace two abort calls by dump_core calls.
9435
93c26624
JK
94362010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9437 Eli Zaretskii <eliz@gnu.org>
9438
9439 * NEWS: Document the PIE support.
9440
55235ad7
JK
94412010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9442
9443 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
9444 (check_is_pie_binary, _initialize_linux_tdep): Remove.
9445
41752192
JK
94462010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9447
9448 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
9449 Replace exec_entry_point call by bfd_get_start_address.
9450
9f2982ff
JK
94512010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9452
9453 Support Valgrind attachments broken by the PIE support.
9454 * auxv.c: Include gdbcore.h.
9455 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
9456 parameters ops, object and annex. Remove their assertions.
9457 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
9458 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
9459 (memory_xfer_auxv): ... here.
9460 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
9461 memory_xfer_auxv.
9462 * procfs.c (procfs_xfer_partial): Likewise.
9463 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
9464 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
9465 (svr4_solib_create_inferior_hook): Conditionalize the
9466 svr4_relocate_main_executable call.
9467
61f0d762
JK
94682010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9469
9470 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
9471 target_section. Find SECT in current_target_sections, gdb_assert it.
9472 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
9473 New variable abfd.
9474 * symtab.c (lookup_objfile_from_block): Return the binary file instead
9475 of separate debug info file.
9476
51bee8e9
JK
94772010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9478
9479 Support PIEs with no symfile_objfile.
9480 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
9481 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
9482
b8040f19
JK
94832010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9484
9485 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
9486 code part to ...
9487 (svr4_static_exec_displacement): ... a new function.
9488 (svr4_exec_displacement): New function.
9489 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
9490 new_offsets using alloca now. Remove variable old_chain and changed.
9491 Call objfile_relocate unconditionally now.
9492
eb90ce83
DE
94932010-01-14 Doug Evans <dje@google.com>
9494
9495 * gdbtypes.c (arch_flags_type): Fix comment.
9496 * gdbtypes.h (arch_composite_type): Fix comment.
9497
bdfed3bc
TG
94982009-01-14 Tristan Gingold <gingold@adacore.com>
9499
9500 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
9501 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
9502 to symbol_file_add_from_bfd. Add OSO as separate objfile.
9503 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
9504 macho_add_oso_symfile.
9505 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
9506
1596ad23
JB
95072010-01-14 Joel Brobecker <brobecker@adacore.com>
9508
9509 Tru64: Dead threads are never deleted.
9510 * dec-thread.c (dec_thread_ptid_is_alive): New function.
9511 (dec_thread_count_gdb_threads): Fix counter increment.
9512 (dec_thread_add_gdb_thread): Fix *listp increment.
9513 (resync_thread_list): Fix bug in deletion of dead threads that
9514 caused all threads to be deleted, instead of just the dead ones.
9515
be759fcf
PM
95162010-01-13 Phil Muldoon <pmuldoon@redhat.com>
9517
9518 PR python/10705
9519
9520 * python/python-internal.h: Add lazy_string_object_type
9521 definition.
9522 (create_lazy_string_object, gdbpy_initialize_lazy_string)
9523 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
9524 * python/py-value.c (valpy_lazy_string): New function.
9525 (convert_value_from_python): Add lazy string conversion.
9526 * python/py-prettyprint.c (pretty_print_one_value): Check if
9527 return is also a lazy string.
9528 (print_string_repr): Add lazy string printing branch.
9529 (print_children): Likewise.
9530 * python/py-lazy-string.c: New file. Implement lazy strings.
9531 * python/python.c (_initialize_python): Call
9532 gdbpy_initialize_lazy_string.
9533 * varobj.c (value_get_print_value): Add lazy string printing
9534 branch. Account for encoding.
9535 * c-lang.c (c_printstr): Account for new encoding argument. If
9536 encoding is NULL, find encoding suited for type, otherwise use
9537 user encoding.
9538 * language.h (language_defn): Add encoding argument.
9539 (LA_PRINT_STRING): Likewise.
9540 * language.c (unk_lang_printstr): Update to reflect new encoding
9541 argument to language_defn.
9542 * ada-lang.h (ada_printstr): Likewise.
9543 * c-lang.h (c_printstr): Likewise.
9544 * p-lang.h (pascal_printstr);
9545 * f-lang.c (f_printstr): Likewise.
9546 * m2-lang.c (m2_printstr): Likewise.
9547 * objc-lang.c (objc_printstr): Likewise.
9548 * p-lang.c (pascal_printstr): Likewise.
9549 * scm-lang.c (scm_printstr): Likewise.
9550 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
9551 encoding argument.
9552 * ada-valprint.c (ada_printstr): Likewise.
9553 * f-valprint.c (f_val_print): Likewise
9554 * m2-valprint.c (m2_val_print): Likewise.
9555 * p-valprint.c (pascal_val_print): Likewise.
9556 * expprint.c (print_subexp_standard): Likewise.
9557 * valprint.c (val_print_string): Likewise.
9558 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
9559 (SUBDIR_PYTHON_SRCS): Likewise.
9560 (py-lazy-string.o): New rule.
9561
1fe72117 95622010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
9563
9564 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
9565 uninitialized" warning from gcc on local `tree'.
9566
dc146f7c
VP
95672010-01-13 Vladimir Prus <vladimir@codesourcery.com>
9568
9569 Implement core awareness.
9570
9571 * bcache.c (compare_ints): Remove
9572 (print_percentage): Use compare_positive_ints.
9573 * defs.h (compare_positive_ints): Declare.
9574 * linux-nat.h (struct lin_lwp): New field core.
9575 (linux_nat_core_of_thread_1): Declare.
9576 * linux-nat.c (add_lwp): Init the 'core' field.
9577 (linux_nat_wait_1): Record the core.
9578 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
9579 (linux_nat_add_target): Register the above.
9580 * linux-thread-db.c (update_thread_core): New.
9581 (thread_db_find_new_threads): Update core information for
9582 every thread.
9583 * remote.c (struct private_thread_info): New.
9584 (free_private_thread_info, demand_private_info): New.
9585 (PACKET_qXfer_threads, use_osdata_threads): New.
9586 (struct thread_item, threads_parsing_context
9587 (start_thread, end_thread, thread_attributes)
9588 (thread_children, threads_children, threads_elements): New.
9589 (remote_threads_info): Try qXfer:threads before anything
9590 else.
9591 (remote_protocol_packets): Register qXfer:threads.
9592 (remote_open_1): Init use_osdata_threads.
9593 (struct stop_reply): New field 'core'.
9594 (remote_parse_stop_reply): Parse core number.
9595 (process_stop_reply): Record core number.
9596 (remote_xfer_partial): Handle qXfer:threads.
9597 (remote_core_of_thread): New.
9598 (init_remote_ops): Register remote_core_of_thread.
9599 (_initialize_remote): Register qXfer:read.
9600 * target.c (target_core_of_thread): New
9601 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
9602 (struct target_ops): New field to_core_of_threads.
9603 (target_core_of_thread): Declare.
9604 * gdbthread.h (struct thread_info): New field private_dtor.
9605 * thread.c (print_thread_info): Report the core.
9606 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
9607 * utils.c (compare_positive_ints): New.
9608 * features/threads.dtd: New.
9609 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
9610 * mi/mi-main.c (struct collect_cores_data, collect_cores)
9611 (do_nothing, free_vector_of_osdata_items)
9612 (splay_tree_int_comparator, free_splay_tree): New.
9613 (print_one_inferior_data): Implemented printing of selected
9614 inferiors. Collect and print cores.
9615 (output_cores): New.
9616 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
9617 thread groups together with --available.
9618
d30c5336
JK
96192010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9620
9621 * configure: Regenerate (for _STRUCTURED_PROC).
9622
02893727
JB
96232010-01-12 Joel Brobecker <brobecker@adacore.com>
9624
9625 Delete dead function.
9626 * ada-lang.c (extract_string): Delete. No longer used.
9627
46ed2d6f
JB
96282010-01-12 Joel Brobecker <brobecker@adacore.com>
9629
9630 Fix -Wunused warning in dec-thread.c.
9631 * dec-thread.c (dec_thread_count_gdb_threads)
9632 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
9633
606b8d1a
JB
96342010-01-12 Joel Brobecker <brobecker@adacore.com>
9635
9636 * ada-valprint.c (ada_print_floating): Remove trailing space.
9637
b4ba55a1
JB
96382010-01-12 Joel Brobecker <brobecker@adacore.com>
9639
9640 Add support for DW_AT_GNAT_descriptive_type.
9641 * gdbtypes.h (enum type_specific_kind): New enum.
9642 (struct main_type) [type_specific_field]: New component.
9643 [type_specific]: Add new component "gnat_stuff".
9644 (struct gnat_aux_type): New type.
9645 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
9646 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
9647 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
9648 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
9649 (TYPE_SPECIFIC_FIELD): New macros.
9650 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
9651 type does not hold any cplus-specific data.
9652 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
9653 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
9654 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
9655 cplus-specific data.
9656 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
9657 Set new component TYPE_SPECIFIC_FIELD (type).
9658 (gnat_aux_default): New constant.
9659 (allocate_gnat_aux_type): New function.
9660 (init_type): Add initialization the type-specific stuff for
9661 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
9662 (print_gnat_stuff): New function.
9663 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
9664 specific data. Adjust code that prints the contents of the
9665 type-specific union using the TYPE_SPECIFIC_FIELD value.
9666 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
9667 the type cplus stuff for Ada types.
9668 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
9669 Error out if these routines are called with an Ada type.
9670 (read_structure_type, read_array_type, read_subrange_type):
9671 Add call to set_descriptive_type.
9672 (set_die_type): Initialize the gnat-specific data if necessary.
9673 (need_gnat_info, die_descriptive_type, set_descriptive_type):
9674 New functions.
9675 * ada-lang.c (decode_constrained_packed_array_type): Use
9676 decode_constrained_packed_array_type instead of doing a standard
9677 lookup to locate a parallel type.
9678 (find_parallel_type_by_descriptive_type): New function.
9679 (ada_find_parallel_type_with_name): New function.
9680 (ada_find_parallel_type): Reimplement using
9681 ada_find_parallel_type_with_name.
9682 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
9683 to check if type has a cplus stuff.
9684 * linespec.c (total_number_of_methods): Likewise.
9685 * mdebugread.c (new_type): Likewise.
9686
b0f02ee9
JK
96872010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9688
9689 * NEWS: Document the 0b binary number prefix parsing.
9690
b260e109
JK
96912010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9692
9693 * objfiles.c (objfile_relocate1): Change the return type to int.
9694 Describe the new return value. Return non-zero if data changed.
9695 (objfile_relocate): New variable changed. Set it. Call
9696 breakpoint_re_set depending on CHANGED.
9697
b5cfddf5
JK
96982010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9699
9700 Implement binary numbers parsing.
9701 * c-exp.y (parse_number): New case 'b' and 'B'.
9702
e0ae4240
JK
97032010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9704 Tristan Gingold <gingold@adacore.com>
9705
9706 * solib.c (info_sharedlibrary_command): Replace
9707 objfile_has_partial_symbols and objfile_has_full_symbols calls by
9708 objfile_has_symbols.
9709
6e0e5977
JB
97102010-01-10 Joel Brobecker <brobecker@adacore.com>
9711
9712 * NEWS: Document the improvements made to the mips-irix port.
9713
7348c5e1
JB
97142010-01-09 Joel Brobecker <brobecker@adacore.com>
9715
9716 Fix the documentation of valprint.c:value_print.
9717 * valprint.c (value_print): Update the function description to
9718 mention that the syntax of the output follows the current_language,
9719 not necessarily C.
9720
567995e1
JK
97212010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9722
9723 Fix displacement of separate debug info files.
9724 * objfiles.c (objfile_relocate): Rename to ...
9725 (objfile_relocate1): ... here and make it static. Extend the comment.
9726 (objfile_relocate): New function.
9727 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
9728 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
9729 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
9730 allocated using alloca.
9731 * symfile.c (copy_section_addr_info): Remove.
9732 (build_section_addr_info_from_objfile): Make it global. New variables
9733 addr_bit and mask, use them.
9734 * symfile.h (build_section_addr_info_from_objfile): New prototype.
9735 (copy_section_addr_info): Remove.
9736
6d8eadbd
JB
97372010-01-09 Joel Brobecker <brobecker@adacore.com>
9738
9739 Signal unwinder for mips-irix N32.
9740 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
9741 tramp-frame.h.
9742 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
9743 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
9744 (SIGCONTEXT_LO_OFF): New macros.
9745 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
9746 (mips_irix_n32_tramp_frame): New static constant.
9747 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
9748
27087a3d
JB
97492010-01-09 Joel Brobecker <brobecker@adacore.com>
9750
9751 Breakpoint in shared library does not work on mips-irix.
9752 * procfs.c: #include "observer.h".
9753 (procfs_inferior_created): New function, moving here the code
9754 which unsets the syssgi syscall-exit notifications.
9755 (procfs_create_inferior): Remove the code which unsets the syssgi
9756 syscall-exit notifications. It is too early to do this here.
9757 (_initialize_procfs): Attach the procfs_inferior_created observer.
9758
f08877ba
JB
97592010-01-09 Joel Brobecker <brobecker@adacore.com>
9760
9761 Wrong return convention for arrays (mips-irix).
9762 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
9763 128 bits or smaller are returned the same way as structs
9764 and unions of the the same size.
9765
e4b97d48
JB
97662010-01-09 Joel Brobecker <brobecker@adacore.com>
9767
9768 Cannot set the PC on mips-irix.
9769 * irix5-nat.c (fill_gregset): Check regno against the raw PC
9770 register number, no the cooked one.
9771
11377e68
JB
97722010-01-09 Joel Brobecker <brobecker@adacore.com>
9773
9774 Error while loading core file on mips-irix.
9775 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
9776 if debugging from a core file.
9777
b2391021
JB
97782010-01-09 Joel Brobecker <brobecker@adacore.com>
9779
9780 GDB hangs when attaching to process on mips-irix.
9781 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
9782 attaching to a process.
9783
f2ec0ecf
JB
97842010-01-09 Joel Brobecker <brobecker@adacore.com>
9785
9786 Use the correct breakpoint instruction on mips-irix.
9787 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
9788 containing the correct breakpoint instruction to use on mips-irix.
9789 Use it when the osabi is GDB_OSABI_IRIX.
9790
3c95f01c
JB
97912010-01-09 Joel Brobecker <brobecker@adacore.com>
9792
9793 -Wunused warning in procfs.c (mips-irix only).
9794 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
9795 throughout instead of using praddset and prdelset respectively.
9796
4b7703ad
JB
97972010-01-09 Joel Brobecker <brobecker@adacore.com>
9798
9799 GDB crash while stepping into function.
9800 * infrun.c (handle_inferior_event): Refetch the current frame
9801 after handling what.main_action, in case that pointer became
9802 dangling.
9803
12c89474
JB
98042010-01-09 Joel Brobecker <brobecker@adacore.com>
9805
9806 Fix build failure of solaris-hosted cross debuggers.
9807 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
9808
1a3fd262 98092010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
9810
9811 Fix build failure on sparc-solaris.
9812 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
9813
75242ef4
JK
98142010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9815
9816 Move some symfile code into subroutines.
9817 * symfile.h (relative_addr_info_to_section_offsets)
9818 (addr_info_make_relative): New prototypes.
9819 * symfile.c (default_symfile_offsets): Move a part to ...
9820 (relative_addr_info_to_section_offsets): ... this new function.
9821 (default_symfile_offsets): Call it.
9822 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
9823 this part to ...
9824 (addr_info_make_relative): ... this new function.
9825
268a4a75
JK
98262010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9827
9828 Add from_tty to solib_create_inferior_hook.
9829 * infcmd.c (post_create_inferior): Move solib_add after
9830 solib_create_inferior_hook. Pass from_tty to
9831 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
9832 0 from_tty and comment why.
9833 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
9834 * linux-nat.c (linux_child_follow_fork): Likewise.
9835 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
9836 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
9837 from_tty.
9838 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
9839 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
9840 * solib-null.c (null_solib_create_inferior_hook): Likewise.
9841 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
9842 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
9843 * solib-som.c (som_solib_create_inferior_hook): Likewise.
9844 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
9845 Pass it to svr4_so_ops.solib_create_inferior_hook.
9846 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
9847 from_tty.
9848 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
9849 solib_add.
9850 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
9851 enable_break.
9852 * solib-target.c (solib_target_solib_create_inferior_hook): New
9853 parameter from_tty.
9854 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
9855 it to ops->solib_create_inferior_hook.
9856 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
9857 Move solib_add after solib_create_inferior_hook, call it now with
9858 from_tty as 0. New comment there.
9859 * solib.h (solib_create_inferior_hook): New parameter from_tty.
9860 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
9861 Likewise.
9862
cf00dfa7
VP
98632010-01-08 Vladimir Prus <vladimir@codesourcery.com>
9864
9865 Fix multiexec race.
9866 * infrun.c (handle_inferior_event): Use get_thread_regcache
9867 with events ptid, not get_current_regcache.
9868
f91e5ac3
JB
98692009-01-08 Joel Brobecker <brobecker@adacore.com>
9870
9871 GDB crash with empty executable name (MinGW).
9872 * source.c (openp): Add assert that parameter string is not NULL.
9873 if parameter string is an empty string, then return with a failure
9874 immediately.
9875
92b9ce5b
JB
98762009-01-08 Joel Brobecker <brobecker@adacore.com>
9877
9878 Get rid of support for VAX Floats.
9879 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9880 (ada_vax_float_print_function): Delete.
9881 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9882 (ada_vax_float_print_function): Delete.
9883 * ada-typeprint.c (print_vax_floating_point_type): Delete.
9884 (ada_print_type): Remove support for VAX floats.
9885 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
9886
268a4a75 98872010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
9888
9889 * stabsread.c (read_args): Handle zero arguments.
9890
f0f20949
JB
98912009-01-08 Joel Brobecker <brobecker@adacore.com>
9892
9893 Cannot find in-tree libiconv.a after reconfigure.
9894 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
9895 that we can use, then cache the path to this archive.
9896 * configure: Regenerate.
9897
6b6218c5
SS
98982010-01-07 Stan Shebs <stan@codesourcery.com>
9899
35b1e5cc
SS
9900 Make tracepoint operations go through target vector.
9901 * target.h (enum trace_find_type): New enum.
9902 (struct target_ops): New fields to_trace_init,
9903 to_download_tracepoint, to_download_trace_state_variable,
9904 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
9905 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
9906 to_set_disconnected_tracing.
9907 (target_trace_init): New macro.
9908 (target_download_tracepoint): New macro.
9909 (target_download_trace_state_variable): New macro.
9910 (target_trace_start): New macro.
9911 (target_trace_set_readonly_regions): New macro.
9912 (target_get_trace_status): New macro.
9913 (target_trace_stop): New macro.
9914 (target_trace_find): New macro.
9915 (target_get_trace_state_variable_value): New macro.
9916 (target_set_disconnected_tracing): New macro.
9917 * target.c (update_current_target): Inherit and set defaults for
9918 tracepoint operations.
9919 * tracepoint.c (default_collect): Make globally visible.
9920 (target_is_remote): Remove, along with all calls.
9921 (tvariables_info): Call target_get_trace_state_variable_value.
9922 (remote_set_transparent_ranges): Remove.
9923 (trace_start_command): Call target_trace_init,
9924 target_download_tracepoint, etc.
9925 (download_tracepoint): Remove.
9926 (trace_stop_command): Simplify.
9927 (stop_tracing): Call target_trace_stop.
9928 (get_trace_status): Call target_get_trace_status.
9929 (trace_status_command): Add case for targets that cannot trace.
9930 (finish_tfind_command): Change to take numerical arguments, call
9931 target_trace_find.
9932 (trace_find_command): Update call to finish_tfind_command.
9933 (trace_find_pc_command): Ditto.
9934 (trace_find_tracepoint_command): Ditto.
9935 (trace_find_line_command): Ditto.
9936 (trace_find_range_command): Ditto.
9937 (trace_find_outside_command): Ditto.
9938 (set_disconnected_tracing_value): Call
9939 target_set_disconnected_tracing.
9940 * remote.c: Add protocol encoding bits from tracepoint.c.
9941 (trace_error): Move from tracepoint.c.
9942 (remote_get_noisy_reply): Ditto.
9943 (free_actions_list_cleanup_wrapper): Ditto.
9944 (free_actions_list): Ditto.
9945 (remote_trace_init): New function.
9946 (remote_download_tracepoint): New function.
9947 (remote_download_trace_state_variable): New function.
9948 (remote_trace_set_readonly_regions): New function.
9949 (remote_trace_start): New function.
9950 (remote_get_trace_status): New function.
9951 (remote_trace_stop): New function.
9952 (remote_trace_find): New function.
9953 (remote_download_trace_state_variable): New function.
9954 (remote_set_disconnected_tracing): New function.
9955 (init_remote_ops): Add tracepoint operations.
9956
6b6218c5
SS
9957 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
9958
089b4803
TG
99592010-01-07 Tristan Gingold <gingold@adacore.com>
9960
9961 * symfile.c (build_section_addr_info_from_objfile): New function.
9962 (symbol_file_add_separate): Don't use offsets from objfile but
9963 built an addr info.
9964
d5551862
SS
99652010-01-06 Stan Shebs <stan@codesourcery.com>
9966
9967 Support disconnected tracing.
9968 * infcmd.c (detach_command): Ask whether to stop tracing.
9969 * cli/cli-cmds.c (quit_command): Ditto.
9970 * breakpoint.h (struct breakpoint): New field number_on_target.
9971 * breakpoint.c (create_tracepoint_from_upload): New function.
9972 (get_tracepoint_by_number_on_target): New function.
9973 * remote.c (struct remote): New field disconnected_tracing.
9974 (remote_disconnected_tracing_feature): New function.
9975 (remote_protocol_features): Add DisconnectedTracing.
9976 (struct uploaded_tp): New struct.
9977 (uploaded_tps): New global.
9978 (get_uploaded_tp): New function.
9979 (find_matching_tracepoint): New function.
9980 (remote_get_tracing_state): New function.
9981 (remote_start_remote): Call it.
9982 * tracepoint.c (disconnected_tracing): New global.
9983 (trace_start_command): Initialize number_on_target.
9984 (stop_tracing): New function, split out from...
9985 (trace_stop_command): Call stop_tracing.
9986 (get_trace_status): New function, split out from...
9987 (trace_status_command): Call get_trace_status, add info on
9988 disconnection behavior.
9989 (disconnect_or_stop_tracing): New function.
9990 (finish_tfind_command): Translate from number on target.
9991 (trace_find_tracepoint_command): Translate to number on target.
9992 (send_disconnected_tracing_value): New function.
9993 (set_disconnected_tracing): New function.
9994 (_initialize_tracepoint): Add disconnected-tracing variable.
9995 * NEWS: Mention disconnected tracing.
9996
15d123c9
TG
99972010-01-06 Tristan Gingold <gingold@adacore.com>
9998
9999 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10000 parameter to main_objfile. Iterate on all separate debug objfiles.
10001 * symfile.h (symbol_file_add_separate)
10002 (find_separate_debug_file_by_debuglink): Remove parameter names.
10003 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10004 (reread_symbols): Use free_objfile_separate_debug.
10005 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10006 Adjust comment.
10007 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10008 (free_objfile_separate_debug): New prototypes.
10009 * objfiles.c (objfile_separate_debug_iterate): New function.
10010 (add_separate_debug_objfile, free_objfile_separate_debug): New
10011 functions.
10012 (free_objfile): Use free_objfile_separate_debug. Adjust for
10013 multiple separate debug objfile.
10014 (objfile_has_symbols): Adjust comment. Iterate on all separate
10015 debug objfiles.
10016 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10017 debug objfile.
10018 (lookup_minimal_symbol_text): Ditto.
10019 (lookup_minimal_symbol_by_pc_name): Ditto.
10020 (lookup_minimal_symbol_solib_trampoline): Ditto.
10021 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10022 debug objfiles.
10023
7a697b8d
SS
100242010-01-05 Stan Shebs <stan@codesourcery.com>
10025
10026 Add fast tracepoints.
10027 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10028 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10029 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10030 * breakpoint.c (tracepoint_type): New function.
10031 (ALL_TRACEPOINTS): Use it.
10032 (should_be_inserted): Ditto.
10033 (bpstat_check_location): Ditto.
10034 (print_one_breakpoint_location): Ditto.
10035 (user_settable_breakpoint): Ditto.
10036 (set_breakpoint_location_function): Ditto.
10037 (disable_breakpoints_in_shlibs): Ditto.
10038 (delete_trace_command): Ditto.
10039 (print_it_typical): Add bp_fast_tracepoint case.
10040 (bpstat_what): Ditto.
10041 (print_one_breakpoint_location): Ditto.
10042 (allocate_bp_location): Ditto.
10043 (mention): Ditto.
10044 (breakpoint_re_set_one): Ditto.
10045 (disable_command): Ditto.
10046 (enable_command): Ditto.
10047 (check_fast_tracepoint_sals): New function.
10048 (break_command_really): Call it.
10049 (ftrace_command): New function.
10050 (_initialize_breakpoint): Add ftrace command.
10051 * gdbarch.sh (fast_tracepoint_valid_at): New.
10052 * gdbarch.h, gdbarch.c: Regenerate.
10053 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10054 (i386_gdbarch_init): Use it.
10055 * remote.c (struct remote_state): New field fast_tracepoints.
10056 (PACKET_FastTracepoints): New packet config type.
10057 (remote_fast_tracepoint_feature): New function.
10058 (remote_protocol_features): Add FastTracepoints.
10059 (remote_supports_fast_tracepoints): New function.
10060 (_initialize_remote): Add FastTracepoints.
10061 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
10062 * NEWS: Mention fast tracepoints.
10063
737a160e
JB
100642010-01-06 Joel Brobecker <brobecker@adacore.com>
10065
10066 * gdb-gdb.py: New file.
10067
ce6cca6d
MS
100682010-01-05 Michael Snyder <msnyder@vmware.com>
10069
10070 * infrun.c (handle_inferior_event): Fix typo in comment.
10071
0d15807d
JK
100722010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10073
10074 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10075
7803799a
UW
100762010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10077
c8d5aac9 10078 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
10079 and s390x-linux64.
10080 (s390-linux32-expedite): Define.
10081 (s390-linux64-expedite): Define.
10082 (s390x-linux64-expedite): Define.
10083 * features/s390-acr.xml: New file.
10084 * features/s390-fpr.xml: New file.
10085 * features/s390-core32.xml: New file.
10086 * features/s390-core64.xml: New file.
10087 * features/s390x-core64.xml: New file.
10088 * features/s390-linux32.xml: New file.
10089 * features/s390-linux64.xml: New file.
10090 * features/s390x-linux64.xml: New file.
10091 * features/s390-linux32.c: New generated file.
10092 * features/s390-linux64.c: New generated file.
10093 * features/s390x-linux64.c: New generated file.
10094
10095 * regformats/s390-linux32.dat: New generated file.
10096 * regformats/s390-linux64.dat: New generated file.
10097 * regformats/s390x-linux64.dat: New generated file.
10098 * regformats/reg-s390.dat: Remove.
10099 * regformats/reg-s390x.dat: Remove.
10100
10101 * s390-nat.c: Include "auxv.h" and <elf.h>.
10102 (HWCAP_S390_HIGH_GPRS): Define if undefined.
10103 (s390_target_wordsize): New function.
10104 (s390_auxv_parse): Likewise.
10105 (s390_get_hwcap): Likewise.
10106 (s390_read_description): Likewise.
10107 (_initialize_s390_nat): Install s390_auxv_parse and
10108 s390_read_description.
10109
10110 * s390-tdep.c: Include "features/s390-linux32.c",
10111 "features/s390-linux64.c", and "features/s390x-linux64.c".
10112 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
10113 (s390_register_call_saved): New function.
10114 (s390_register_name): Remove.
10115 (s390_register_type): Remove.
10116 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
10117 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
10118 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
10119 (s390_pseudo_register_name): New function.
10120 (s390_pseudo_register_type): New function.
10121 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
10122 Handle full GPR pesudos and varying pseudo register numbers.
10123 (s390_pseudo_register_write): Likewise
10124 (s390x_pseudo_register_read): Remove.
10125 (s390x_pseudo_register_write): Likewise.
10126 (s390_register_group): Remove.
10127 (s390_pseudo_register_group): New function.
10128 (s390_regmap_gregset): Add GPR upper halves.
10129 (s390x_regmap_gregset): Likewise.
10130 (s390_regmap_fpregset): Likewise.
10131 (s390_regmap_upper): New global variable.
10132 (s390_upper_regset): New global variable.
10133 (s390_upper_regset_sections): New global variable.
10134 (s390_regset_from_core_section): Handle GPR upper halves.
10135 (s390_core_read_description): New function.
10136 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
10137 register information. Handle varying pseudo register numbers.
10138 (s390_backchain_frame_unwind_cache): Likewise.
10139 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
10140 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
10141 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
10142 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
10143 Handle varying pseudo register numbers.
10144 (s390_unwind_pc): Handle varying pseudo register numbers.
10145 (s390_dwarf2_prev_register): New function.
10146 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
10147 register information. Handle varying pseudo register numbers.
10148 Install s390_dwarf2_prev_register to unwind full GPRs.
10149 (s390_gdbarch_init): Handle target descriptions. Assign varying
10150 pseudo register numbers. Install s390_adjust_frame_regnum.
10151 (_initialize_s390_tdep): Initialize target descriptions.
10152
10153 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
10154 (S390_NUM_REGS): Redefine to include upper half registers.
10155 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
10156 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
10157 (tdesc_s390_linux32): Add declaration.
10158 (tdesc_s390_linux64): Likewise.
10159 (tdesc_s390x_linux64): Likewise.
10160
1b1818e4
UW
101612010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10162
10163 * regset.h (struct core_regset_section): Add HUMAN_NAME.
10164 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
10165 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
10166 (ppc_linux_vmx_regset_sections): Likewise.
10167 (ppc_linux_fp_regset_sections): Likewise.
10168
10169 * corelow.c (get_core_register_section): Constify arguments.
10170 (get_core_registers): Use gdbarch_core_regset_sections instead
10171 of hard-coded platform-specific register section names.
10172
dcbf108f
UW
101732010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10174
10175 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 10176 a register, assume the least-significant part is used.
dcbf108f
UW
10177 (write_pieced_value): Likewise.
10178
704e9165
UW
101792010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10180
10181 * printcmd.c: Include "arch-utils.h".
10182 (do_one_display): Re-parse expression if current architecture changed.
10183
c54eabfa
JK
101842010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10185 Joel Brobecker <brobecker@adacore.com>
10186
10187 * gdbtypes.c (check_typedef): New comment on type length.
10188 * value.c (allocate_value_lazy): Remove the unused atype variable. New
10189 comment on type length.
10190 (value_primitive_field): Keep the original TYPE value, new comment.
10191
50cb2941
JK
101922010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10193
10194 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
10195 p_start. Change != comparisons to > and < comparisons.
10196
be66db07
JK
101972010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10198
10199 * cli/cli-script.c (process_next_line): Check P2 overrun.
10200
abd775ce
JB
102012009-01-01 Joel Brobecker <brobecker@adacore.com>
10202
10203 Update the copyright hearder to add year 2010 for most GDB files.
10204
6479260d
JB
102052009-01-01 Joel Brobecker <brobecker@adacore.com>
10206
10207 Fix build failure in inf-ptrace.c.
10208 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
10209
4a70f654
JB
102102010-01-01 Joel Brobecker <brobecker@adacore.com>
10211
10212 * top.c (print_gdb_version): Update copyright year.
10213
595939de 102142010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
10215
10216 Fix break *FUN'address thread NUM.
10217 * ada-lex.l (task): Expand rule to also match the thread keyword.
10218
70575d34
JB
102192010-01-01 Joel Brobecker <brobecker@adacore.com>
10220
10221 Fix break *FUN'address task NUM.
10222 * ada-lex.l (task): New rule.
10223 * ada-lang.c (valid_task_id): Make sure the Ada task list has
10224 been built before using it.
10225
e1e4d4a4 10226For older changes see ChangeLog-2009.
c906108c
SS
10227\f
10228Local Variables:
10229mode: change-log
10230left-margin: 8
10231fill-column: 74
10232version-control: never
57da7796 10233coding: utf-8
c906108c 10234End:
This page took 2.555241 seconds and 4 git commands to generate.