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