* tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-02-19 Jiong Wang <jiwang@tilera.com>
2
3 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
4
5 2013-02-13 Jiong Wang <jiwang@tilera.com>
6
7 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
8
9 2013-02-19 Jiong Wang <jiwang@tilera.com>
10
11 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
12 (tilegx_write_pc): New function.
13 (tilegx_cannot_reference_register): Return zero if REGNO
14 is TILEGX_FAULTNUM_REGNUM.
15 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
16 (tilegx_register_name): Add handling of "faultnum" register.
17 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
18 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
19 handling of TILEGX_FAULTNUM_REGNUM.
20 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
21
22 2013-02-19 Jiong Wang <jiwang@tilera.com>
23
24 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
25 should be aligned to 64bit.
26
27 2013-02-19 Kai Tietz <ktietz@redhat.com>
28
29 * windows-nat.c (windows_xfer_memory): Fix debug-output
30 for LLP64.
31
32 2013-02-19 Lei Liu <lei.liu2@windriver.com>
33
34 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
35 Don't check DSP register number if HAVE_DSP is not set.
36
37 2013-02-19 Alan Modra <amodra@gmail.com>
38
39 * elfread.c (struct build_id): Delete. Use struct elf_build_id
40 throughout file instead.
41 (build_id_bfd_get): Update to use new elf_tdata build_id field.
42 Don't xmalloc return value.
43 (build_id_verify): Similarly. Don't xfree.
44 (build_id_to_debug_filename): Update.
45 (find_separate_debug_file_by_buildid): Update, don't xfree.
46
47 2013-02-18 Tom Tromey <tromey@redhat.com>
48
49 PR gdb/15102:
50 * dwarf2read.c (read_subrange_type): Use result of
51 'check_typedef'.
52
53 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
54
55 * frame.c: Remove one extra white space after #include
56 directive.
57
58 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
59
60 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
61
62 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
63
64 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
65 and dir commands into an if block.
66
67 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
68
69 * python/py-breakpoint (struct pybp_code): Use int instead of
70 enum type_code.
71
72 2013-02-15 Pedro Alves <pedro@codesourcery.com>
73 Hafiz Abid Qadeer <abidh@codesourcery.com>
74
75 * NEWS: Mention new field "trace-file".
76 * tracepoint.c (trace_status_mi): Output "trace-file" field.
77 (tfile_open): Record the trace file's filename in the trace
78 status.
79 (tfile_files_info): Mention the name of the trace file.
80 Check the "filename" field explicitely.
81 (trace_status_command): Explicitely check "filename" field.
82 (trace_find_command): Ditto.
83 (trace_find_pc_command): Ditto.
84 (trace_find_tracepoint_command): Ditto.
85 (trace_find_line_command): Ditto.
86 (trace_find_range_command): Ditto.
87 (trace_find_outside_command): Ditto.
88 * tracepoint.h (struct trace_status) <from_file>: Rename it
89 to "filename" and make it hold the trace file's filename
90 instead of a boolean.
91 * remote.c (remote_get_trace_status): Initialize "filename"
92 field with NULL instead of 0.
93
94 2013-02-15 Yao Qi <yao@codesourcery.com>
95
96 * remote.c: Fix a typo.
97
98 2013-02-14 Pierre Muller <muller@sourceware.org>
99
100 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
101
102 2013-02-14 Pedro Alves <palves@redhat.com>
103
104 * utils.c (savestring): Don't #undef it. Move function to
105 common/common-utils.c.
106 * common/common-utils.c: Include gdb_string.h.
107 (savestring): Move here from utils.c.
108 * common/common-utils.h (savestring): Declare.
109
110 2013-02-14 Pedro Alves <palves@redhat.com>
111
112 * utils.c (savestring): Rename parameter 'size' to 'len'.
113
114 2013-02-14 Pedro Alves <palves@redhat.com>
115 Yufeng Zhang <yufeng.zhang@arm.com>
116
117 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
118 (aarch64_inferior_data, struct aarch64_inferior_data):
119 Delete.
120 (struct aarch64_process_info): New.
121 (aarch64_process_list): New global.
122 (aarch64_find_process_pid, aarch64_add_process)
123 (aarch64_process_info_get): New functions.
124 (aarch64_inferior_data_get): Delete.
125 (aarch64_process_info_get): New function.
126 (aarch64_forget_process): New function.
127 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
128 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
129 aarch64_get_debug_reg_state.
130 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
131 instead of linux_nat_iterate_watchpoint_lwps.
132 (aarch64_linux_new_fork): New function.
133 (aarch64_linux_child_post_startup_inferior): Use
134 aarch64_forget_process instead of aarch64_init_debug_reg_state.
135 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
136 (aarch64_linux_remove_hw_breakpoint)
137 (aarch64_handle_aligned_watchpoint)
138 (aarch64_handle_unaligned_watchpoint)
139 (aarch64_linux_insert_watchpoint)
140 (aarch64_linux_remove_watchpoint)
141 (aarch64_linux_stopped_data_address): Adjust to pass the current
142 process id to aarch64_debug_reg_state.
143 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
144 linux_nat_new_fork hook, and aarch64_forget_process as
145 linux_nat_forget_process hook; remove the call to
146 register_inferior_data_with_cleanup.
147
148 2013-02-14 Pedro Alves <palves@redhat.com>
149
150 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
151 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
152 lval_memory.
153
154 2013-02-14 Pedro Alves <pedro@codesourcery.com>
155 Hafiz Abid Qadeer <abidh@codesourcery.com>
156
157 * tracepoint.h (validate_trace_state_variable_name): Declare.
158 * tracepoint.c (validate_trace_state_variable_name): New.
159 (trace_variable_command): Parse the trace state variable's name
160 without using parse_expression. Do several validations.
161 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
162 trace state variable's name with parse_expression. Validate it.
163
164 2013-02-14 Yao Qi <yao@codesourcery.com>
165
166 * infcmd.c (breakpoint_proceeded): Remove it.
167
168 2013-02-14 Yao Qi <yao@codesourcery.com>
169
170 * tracepoint.c (end_actions_pseudocommand): Make it static.
171 (while_stepping_pseudocommand): Likewise.
172 * tracepoint.h (end_actions_pseudocommand): Remove the
173 declaration.
174 (while_stepping_pseudocommand): Likewise.
175
176 2013-02-14 Yao Qi <yao@codesourcery.com>
177
178 * cli/cli-decode.c (help_cmd): Remove the declaration of
179 "cmdlist".
180 (help_all): Likewise.
181
182 2013-02-13 Pedro Alves <palves@redhat.com>
183
184 * amd64-linux-nat.c (update_debug_registers_callback):
185 Update comment.
186 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
187 iterate_over_lwps.
188 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
189 i386_debug_reg_state.
190 (amd64_linux_new_fork): New function.
191 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
192 linux_nat_new_fork hook, and i386_forget_process as
193 linux_nat_forget_process hook.
194 * i386-linux-nat.c (update_debug_registers_callback):
195 Update comment.
196 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
197 iterate_over_lwps.
198 (i386_linux_prepare_to_resume): Pass the lwp's pid to
199 i386_debug_reg_state.
200 (i386_linux_new_fork): New function.
201 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
202 linux_nat_new_fork hook, and i386_forget_process as
203 linux_nat_forget_process hook.
204 * i386-nat.c (i386_init_dregs): Delete.
205 (i386_inferior_data, struct i386_inferior_data):
206 Delete.
207 (struct i386_process_info): New.
208 (i386_process_list): New global.
209 (i386_find_process_pid, i386_add_process, i386_process_info_get):
210 New functions.
211 (i386_inferior_data_get): Delete.
212 (i386_process_info_get): New function.
213 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
214 (i386_forget_process): New function.
215 (i386_cleanup_dregs): Rewrite.
216 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
217 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
218 (i386_stopped_data_address, i386_insert_hw_breakpoint)
219 (i386_remove_hw_breakpoint): Adjust to pass the current process id
220 to i386_debug_reg_state.
221 (i386_use_watchpoints): Don't register inferior data.
222 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
223 adjust comment.
224 (i386_forget_process): Declare.
225 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
226 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
227 New static globals.
228 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
229 (add_initial_lwp): New, factored out from ...
230 (add_lwp): ... this. Don't check the number of lwps before
231 calling linux_nat_new_thread.
232 (linux_nat_iterate_watchpoint_lwps): Delete.
233 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
234 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
235 forks and vforks.
236 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
237 initial lwp.
238 (linux_nat_kill, linux_nat_mourn_inferior): Call
239 linux_nat_forget_process.
240 (linux_nat_set_new_fork, linux_nat_set_forget_process)
241 (linux_nat_forget_process): New functions.
242 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
243 type.
244 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
245 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
246 types.
247 (linux_nat_set_new_fork, linux_nat_set_forget_process)
248 (linux_nat_forget_process): New declarations.
249
250 * amd64fbsd-nat.c (super_mourn_inferior): New global.
251 (amd64fbsd_mourn_inferior): New function.
252 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
253 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
254
255 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
256
257 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
258 Adding _().
259
260 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
261
262 * aarch64-linux-nat.c (debug_reg_change_callback)
263 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
264 %s and phex().
265
266 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
267
268 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
269 with LONGEST.
270
271 2013-02-13 Pedro Alves <palves@redhat.com>
272 Hafiz Abid Qadeer <abidh@codesourcery.com>
273
274 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
275
276 2013-02-12 Tom Tromey <tromey@redhat.com>
277
278 PR symtab/11464:
279 * c-exp.y (lex_one_token): Initialize other fields of yylval on
280 NAME return.
281 (classify_inner_name): Remove 'first_name' argument, add
282 'context'. Remove unused variable.
283 (yylex): Explicitly maintain the context type. Exit loop earlier
284 if NAME result is seen.
285
286 2013-02-12 Pedro Alves <palves@redhat.com>
287
288 * amd64-darwin-tdep.c: Add (C) after Copyright.
289 * cli/cli-cmds.h: Ditto.
290 * cli/cli-decode.c: Ditto.
291 * cli/cli-decode.h: Ditto.
292 * cli/cli-dump.c: Ditto.
293 * cli/cli-dump.h: Ditto.
294 * cli/cli-interp.c: Ditto.
295 * cli/cli-logging.c: Ditto.
296 * cli/cli-script.c: Ditto.
297 * cli/cli-script.h: Ditto.
298 * cli/cli-setshow.c: Ditto.
299 * cli/cli-setshow.h: Ditto.
300 * cli/cli-utils.c: Ditto.
301 * cli/cli-utils.h: Ditto.
302 * config/alpha/nm-osf3.h: Ditto.
303 * config/djgpp/djconfig.sh: Ditto.
304 * config/i386/nm-fbsd.h: Ditto.
305 * config/i386/nm-i386gnu.h: Ditto.
306 * config/nm-linux.h: Ditto.
307 * config/nm-nto.h: Ditto.
308 * config/rs6000/nm-rs6000.h: Ditto.
309 * config/sparc/nm-sol2.h: Ditto.
310 * darwin-nat-info.c: Ditto.
311 * dfp.c: Ditto.
312 * dfp.h: Ditto.
313 * gdb-demangle.h: Ditto.
314 * i386-darwin-nat.c: Ditto.
315 * i386-darwin-tdep.c: Ditto.
316 * linux-fork.h: Ditto.
317 * m32c-tdep.c: Ditto.
318 * microblaze-linux-tdep.c: Ditto.
319 * microblaze-rom.c: Ditto.
320 * microblaze-tdep.c: Ditto.
321 * microblaze-tdep.h: Ditto.
322 * mips-linux-tdep.h: Ditto.
323 * ppc-ravenscar-thread.c: Ditto.
324 * ppc-ravenscar-thread.h: Ditto.
325 * prologue-value.c: Ditto.
326 * prologue-value.h: Ditto.
327 * ravenscar-thread.c: Ditto.
328 * ravenscar-thread.h: Ditto.
329 * sparc-ravenscar-thread.c: Ditto.
330 * sparc-ravenscar-thread.h: Ditto.
331 * tilegx-linux-tdep.c: Ditto.
332 * unwind_stop_reasons.def: Ditto.
333 * windows-nat.h: Ditto.
334 * xtensa-linux-tdep.c: Ditto.
335 * xtensa-xtregs.c: Ditto.
336 * regformats/regdat.sh: Ditto.
337 * regformats/regdef.h: Ditto.
338
339 2013-02-12 Pedro Alves <palves@redhat.com>
340
341 * break-catch-sig.c: Update copyright years.
342
343 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
344
345 Add support for a destructor for ui_out data and use it to
346 provide a ui_out destructor.
347 * ui-out.h: Declare the new ui_out destructor.
348 (ui_out_impl): Add a field for data destructor in ui_out_impl.
349 * ui-out.c (default_data_destroy): Add a default data destructor
350 which does nothing.
351 (default_ui_out_impl): Set the new data_destroy field to
352 default_data_destroy
353 (uo_data_destroy): Local function which invokes the data
354 destructor if present.
355 (clear_table): Local function which clears the table data of a
356 ui_out object.
357 (ui_out_destroy): Public function which frees a ui_out object.
358 (ui_out_table_end): Use the new clear_table function.
359 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
360 NULL.
361 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
362 to NULL.
363
364 2013-02-11 Doug Evans <dje@google.com>
365
366 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
367 (printf_decfloat): New function. Broken out from ui_printf.
368 Remove unnecessary code to shift the entire format string down.
369 (printf_pointer): New function.
370 (ui_printf): Code to print C strings, wide C strings, decfloats,
371 and pointers moved to separate functions.
372
373 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
374
375 * valops.c (value_assign): Handling bitfield offset in
376 `lval_internalvar_component' case.
377
378 2013-02-08 Doug Evans <dje@google.com>
379
380 * common/format.c (parse_format_string): Fix whitespace.
381
382 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
383
384 * stack.c (return_command): Work around uninitialized variable
385 warning.
386
387 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
388
389 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
390 number of the registers from 36 to 34.
391
392 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
393
394 * NEWS: Mention new AArch64 native and target support.
395
396 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
397
398 * MAINTAINERS (Write After Approval): Add myself.
399
400 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
401 Marcus Shawcroft <marcus.shawcroft@arm.com>
402 Nigel Stephens <nigel.stephens@arm.com>
403 Yufeng Zhang <yufeng.zhang@arm.com>
404
405 * aarch64-linux-nat.c: New file.
406 * config/aarch64/linux.mh: New file.
407 * configure.host: Add AArch64.
408 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
409
410 2013-02-07 Doug Evans <dje@google.com>
411
412 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
413 disassemble command.
414
415 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
416
417 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
418 set_gdbarch_fetch_tls_load_module_address.
419
420 2013-02-06 David S. Miller <davem@davemloft.net>
421
422 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
423 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
424 * value.c (struct_return_convention): New function.
425 (using_struct_return): Implement in terms of struct_return_convention.
426 * value.h (struct_return_convention): Declare.
427 * stack.c (return_command): Allow successful overriding of the return
428 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
429
430 2013-02-06 Tom Tromey <tromey@redhat.com>
431
432 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
433 outside of TRY_CATCH.
434
435 2013-02-06 Yao Qi <yao@codesourcery.com>
436
437 * mi/mi-interp.c: Include "tracepoint.h".
438 (mi_tsv_modified): Declare.
439 (mi_tsv_created, mi_tsv_deleted): Update declaration.
440 (mi_interpreter_init): Call observer_attach_tsv_modified.
441 (mi_tsv_modified): New.
442 (mi_tsv_created, mi_tsv_deleted): Update.
443 * tracepoint.c (trace_variable_command): Call
444 observer_notify_tsv_modified if the initial value of tsv is
445 changed.
446 (delete_trace_state_variable): Call
447 observer_notify_tsv_deleted earlier.
448 (trace_variable_command): Caller update.
449 (create_tsv_from_upload): Likewise.
450 * observer.sh: Declare "struct trace_state_variable".
451
452 * NEWS: Mention the new MI notification "=tsv-modified".
453
454 2013-02-05 Doug Evans <dje@google.com>
455
456 * completer.c (location_completer): Fix typo in comment.
457
458 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
459
460 * breakpoint.c (add_location_to_breakpoint): Insert the location with
461 ADDRESS sorted.
462
463 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
464
465 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
466 Refactor if statement to avoid trailing || operator.
467
468 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
469
470 * NEWS: Add PowerPC FreeBSD as a new native configuration.
471
472 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
473
474 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
475 * configure.host: Add powerpc*-*-freebsd* target.
476 * configure.tgt: Add target info for powerpc*-*-freebsd*.
477 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
478 * config/powerpc/fbsd.mh: New file.
479
480 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
481 Denys Vlasenko <dvlasenk@redhat.com>
482 Pedro Alves <palves@redhat.com>
483
484 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
485 (struct elf_internal_linux_prpsinfo): Forward declare.
486 * gdbarch.h, gdbarch.c: Regenerate.
487 * linux-tdep.c: Include `cli/cli-utils.h'.
488 (linux_fill_prpsinfo): New function.
489 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
490 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
491 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
492 depending on gdbarch pointer bitness.
493 * ppc-linux-tdep.c: Include elf-bfd.h.
494 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
495 on 32-bit.
496
497 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
498 Marcus Shawcroft <marcus.shawcroft@arm.com>
499 Nigel Stephens <nigel.stephens@arm.com>
500 Yufeng Zhang <yufeng.zhang@arm.com>
501
502 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
503
504 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
505 Marcus Shawcroft <marcus.shawcroft@arm.com>
506 Nigel Stephens <nigel.stephens@arm.com>
507 Yufeng Zhang <yufeng.zhang@arm.com>
508
509 * aarch64-newlib-tdep.c: New file.
510 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
511 aarch64*-*-elf.
512 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
513 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
514 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
515 * osabi.c (gdb_osabi_names): Add "Newlib".
516
517 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
518 Marcus Shawcroft <marcus.shawcroft@arm.com>
519 Nigel Stephens <nigel.stephens@arm.com>
520 Yufeng Zhang <yufeng.zhang@arm.com>
521
522 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
523 (ALLDEPFILES): Add aarch64-linux-tdep.c.
524 * aarch64-linux-tdep.c: New file.
525 * aarch64-linux-tdep.h: New file.
526 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
527 * configure.tgt: Add aarch64-none-linux-gnu.
528
529 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
530 Marcus Shawcroft <marcus.shawcroft@arm.com>
531 Nigel Stephens <nigel.stephens@arm.com>
532 Yufeng Zhang <yufeng.zhang@arm.com>
533
534 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
535 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
536 (ALLDEPFILES): Add aarch64-tdep.c.
537 * aarch64-tdep.c: New file.
538 * aarch64-tdep.h: New file.
539 * configure.tgt: Add AArch64.
540 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
541 (aarch64-expedite): New definition.
542 * features/aarch64-core.xml: New file.
543 * features/aarch64-fpu.xml: New file.
544 * features/aarch64-without-fpu.c: New file (generated).
545 * features/aarch64-without-fpu.xml: New file.
546 * features/aarch64.c: New file (generated).
547 * features/aarch64.xml: New file.
548 * regformats/aarch64-without-fpu.dat: New file (generated).
549 * regformats/aarch64.dat: New file (generated).
550
551 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
552
553 * contrib/expect-read1.c: New file.
554 * contrib/expect-read1.sh: New file.
555
556 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
557
558 * dwarf2read.c (file_file_name): New function with code from
559 file_full_name.
560 (file_full_name): Move most of the code to file_file_name.
561 (macro_start_file): Rename variable full_name to file_name and use
562 file_file_name for it. Add comp_dir parameter to new_macro_table.
563 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
564 macro_source_file->filename access by macro_source_fullname call.
565 * macroscope.c (_initialize_macroscope): Update the new_macro_table
566 caller.
567 * macrotab.c (struct macro_table): New field comp_dir.
568 (macro_include): New variables link_fullname and source_fullname.
569 Replace any macro_source_file->filename access by macro_source_fullname
570 call.
571 (macro_lookup_inclusion): Remove the partial filenames checking code.
572 (check_for_redefinition): New variables source_fullname and
573 found_key_fullname. Replace any macro_source_file->filename access by
574 macro_source_fullname call.
575 (macro_undef): New variables source_fullname and key_fullname. Replace
576 any macro_source_file->filename access by macro_source_fullname call.
577 (macro_lookup_definition): New variables retval and source_fullname.
578 Replace any macro_source_file->filename access by macro_source_fullname
579 call.
580 (foreach_macro): New variable key_fullname. Replace any
581 macro_source_file->filename access by macro_source_fullname call.
582 (foreach_macro_in_scope): New variable datum_fullname. Replace any
583 macro_source_file->filename access by macro_source_fullname call.
584 (new_macro_table): Add parameter comp_dir. Initialize T with it.
585 (macro_source_fullname): New function.
586 * macrotab.h (struct macro_source_file): Extent the filename field
587 comment.
588 (new_macro_table): New parameter comp_dir, add a comment for it.
589 (macro_source_fullname): new declaration.
590
591 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
592
593 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
594 this_real_name to outer block. Use it also for
595 compare_filenames_for_search.
596 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
597 with dw2_get_real_path for file_matcher, considering also
598 BASENAMES_MAY_DIFFER.
599 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
600
601 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
602
603 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
604 to the file_matcher parameter. Pass 0 to it.
605 (dwarf2_create_include_psymtab): Copy also DIRNAME.
606 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
607 NULL psymtab_to_fullname result.
608 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
609 an expected filename instead.
610 (expand_symtabs_matching_via_partial): Add basenames parameter to the
611 file_matcher parameter. Call also psymtab_to_fullname, after newly
612 considering BASENAMES_MAY_DIFFER.
613 * source.c (rewrite_source_path): Remove static.
614 * source.h (rewrite_source_path): New declaration.
615 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
616 the expand_symtabs_matching field. Comment it.
617 * symtab.c (file_matches): New function comment. Add parameter
618 basenames, implement it.
619 (search_symbols_file_matches): Add basenames parameter. Update the
620 file_matches caller.
621 (search_symbols): Match FILES also against symtab_to_fullname.
622 Optimize it for BASENAMES_MAY_DIFFER.
623
624 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
625
626 * source.c (print_source_lines_base): Print for TUI also "fullname".
627 * tui/tui-data.c (init_content_element): Change tui_locator_element
628 field to full_name.
629 * tui/tui-data.h (struct tui_locator_element): Likewise.
630 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
631 tui_update_locator_filename calls to tui_update_locator_fullname.
632 Replace symtab->filename refererence by symtab_to_fullname call.
633 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
634 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
635 field to full_name. Replace symtab->filename refererence by
636 symtab_to_fullname call.
637 (tui_show_symtab_source): Rename parameter to fullname. Change
638 tui_locator_element field to full_name.
639 * tui/tui-stack.c: Include source.h.
640 (tui_set_locator_filename): Rename the declaration to ...
641 (tui_set_locator_fullname): ... here. Rename its parameter to
642 fullname, updates its comment.
643 (tui_set_locator_info): Rename its parameter to fullname.
644 (tui_set_locator_filename): Rename the definition to ...
645 (tui_set_locator_fullname): ... here. Rename its parameter to
646 fullname, updates its comment. Change tui_locator_element field to
647 full_name.
648 (tui_set_locator_info): Rename its parameter to fullname.
649 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
650 (tui_update_locator_filename): Rename to ...
651 (tui_update_locator_fullname): ... here. Rename callee to
652 tui_set_locator_fullname.
653 (tui_show_frame_info): Replace symtab->filename refererence by
654 symtab_to_fullname call.
655 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
656 (tui_update_locator_fullname): ... here.
657 * tui/tui-winsource.c (tui_display_main): Rename the callee to
658 tui_update_locator_fullname. Replace symtab->filename refererence by
659 symtab_to_fullname call.
660 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
661 Rename the callee to tui_update_locator_fullname.
662 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
663
664 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
665
666 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
667 by symtab_to_filename_for_display calls.
668 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
669 (clear_command): New variable sal_fullname, initialize it. Replace
670 compare_filenames_for_search by filename_cmp with sal_fullname.
671 (say_where, update_static_tracepoint): Replace symtab->filename
672 refererences by symtab_to_filename_for_display calls.
673 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
674 Likewise.
675 * dwarf2read.c: Include source.h.
676 (fixup_go_packaging): Replace symtab->filename refererences by
677 symtab_to_filename_for_display calls.
678 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
679 Replace symtab->filename refererences by symtab_to_filename_for_display
680 calls.
681 (create_sals_line_offset, convert_linespec_to_sals): New variable
682 fullname, initialize it, replace symtab->filename reference by the
683 variable.
684 * linux-fork.c: Include source.h.
685 (info_checkpoints_command): Replace symtab->filename refererences by
686 symtab_to_filename_for_display calls.
687 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
688 by symtab_to_filename_for_display calls.
689 * mdebugread.c: Include source.h.
690 (psymtab_to_symtab_1): Replace symtab->filename refererences by
691 symtab_to_filename_for_display calls.
692 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
693 (mi_cmd_file_list_exec_source_files): Likewise.
694 * printcmd.c: Include source.h.
695 (build_address_symbolic): Replace symtab->filename refererences by
696 symtab_to_filename_for_display calls.
697 * psymtab.c (partial_map_symtabs_matching_filename)
698 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
699 with psymtab_to_fullname.
700 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
701 by symtab_to_filename_for_display calls.
702 (stpy_get_filename): New variable filename, initialize it, use instead
703 of symtab->filename refererences.
704 (salpy_str): Make variable filename const char *. Replace
705 symtab->filename refererences by symtab_to_filename_for_display calls.
706 * skip.c: Include source.h and filenames.h.
707 (skip_file_command): Remove const from the symtab variable. Replace
708 symtab->filename refererences by symtab_to_fullname call.
709 (function_name_is_marked_for_skip): New variables searched_for_fullname
710 and fullname. Use them to search also with symtab's fullname.
711 * source.c (find_source_lines): Replace symtab->filename refererences
712 by symtab_to_filename_for_display calls.
713 (print_source_lines_base): New variable filename, use it instead of
714 symtab->filename. Replace symtab->filename refererences by
715 symtab_to_filename_for_display calls.
716 (line_info, forward_search_command): Replace symtab->filename
717 refererences by symtab_to_filename_for_display calls.
718 (reverse_search_command): Replace symtab->filename refererences by
719 symtab_to_filename_for_display calls. New variable filename for it.
720 * stack.c (frame_info): Likewise.
721 * symmisc.c: Include source.h.
722 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
723 (maintenance_info_symtabs): Replace symtab->filename refererences by
724 symtab_to_filename_for_display calls.
725 * symtab.c (iterate_over_some_symtabs): Call
726 compare_filenames_for_search also with symtab_to_fullname.
727 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
728 symtab->filename refererences by symtab_to_filename_for_display calls.
729 (find_line_symtab): Replace symtab->filename refererences by
730 symtab_to_filename_for_display calls.
731 (file_matches): Replace filename_cmp by compare_filenames_for_search.
732 (print_symbol_info): Make the last parameter const char *. New
733 variable s_filename. Use it in the function.
734 (symtab_symbol_info): Make the last_filename variable const char *.
735 Replace symtab->filename refererences by symtab_to_filename_for_display
736 calls.
737 (rbreak_command): New variable fullname. Use it. Replace
738 symtab->filename refererence by symtab_to_filename_for_display call.
739 * tracepoint.c (set_traceframe_context, trace_find_line_command)
740 (print_one_static_tracepoint_marker): Replace symtab->filename
741 refererences by symtab_to_filename_for_display calls.
742 * tui/tui-source.c (tui_set_source_content): New variables filename and
743 s_filename. Replace symtab->filename refererences by this variable.
744 Replace other symtab->filename refererences by
745 symtab_to_filename_for_display calls.
746
747 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
748 Jan Kratochvil <jan.kratochvil@redhat.com>
749
750 Add a new variable that controls a way in which filenames are
751 displayed.
752 * NEWS (set filename-display): New entry.
753 * source.c (filename_display_basename, filename_display_relative)
754 (filename_display_absolute, filename_display_kind_names)
755 (filename_display_string, show_filename_display_string)
756 (symtab_to_filename_for_display): New.
757 (_initialize_source): Added initialization of 'filename-display'
758 variable.
759 * source.h (symtab_to_filename_for_display): Added declaration.
760 * stack.c (print_frame): Added new variable and calling of a new
761 function and condition with this variable. Changed third argument of
762 calling of a function.
763
764 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
765
766 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
767 Rename field reference filename to fullname.
768 * tui/tui-data.h (struct tui_source_info): Rename field filename to
769 fullname. New comment for it.
770 * tui/tui-source.c (tui_set_source_content): Rename field reference
771 filename to fullname. Initialize field by symtab_to_fullname now.
772 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
773 reference filename to fullname. Use symtab_to_fullname during
774 comparison.
775
776 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
777
778 Code cleanup.
779 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
780 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
781 filename to fullname. Rename variable this_name to this_fullname.
782 Lowercase FILENAME_CMP call.
783 (dw2_find_symbol_file): New comment for the returned string.
784 (dwarf2_gdb_index_functions): Rename the function to
785 dw2_expand_symtabs_with_fullname.
786 * psymtab.c (read_psymtabs_with_filename): Rename to ...
787 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
788 fullname.
789 (psym_functions): Rename the function to read_psymtabs_with_fullname.
790 * symfile.h (struct quick_symbol_functions): Rename field
791 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
792 parameter filename to fullname. Document returned string meaning for
793 find_symbol_file.
794 * symtab.c (find_line_symtab): Rename the called function to
795 expand_symtabs_with_fullname.
796
797 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
798
799 Code cleanup.
800 * breakpoint.c (clear_command): Remove variable is_abs, unify the
801 call of filename_cmp with compare_filenames_for_search.
802 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
803 is_abs, unify the call of FILENAME_CMP with
804 compare_filenames_for_search. New gdb_asserts for real_path and name.
805 Unify the call of compare_filenames_for_search with FILENAME_CMP.
806 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
807 * symfile.h (struct quick_symbol_functions): Extend the comment for
808 map_symtabs_matching_filename.
809 * symtab.c (compare_filenames_for_search): Remove the function comment
810 relative path requirement. Handle absolute filenames, with a comment.
811 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
812 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
813 real_path and name. Unify the call of compare_filenames_for_search
814 with FILENAME_CMP.
815 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
816
817 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
818
819 Code cleanup.
820 * breakpoint.c (print_breakpoint_location): Replace bp_location field
821 source_file references by symtab field references. Remove variables
822 sal and fullname.
823 (momentary_breakpoint_from_master, add_location_to_breakpoint):
824 (clear_command, say_where): Replace bp_location field source_file
825 references by symtab field references.
826 (bp_location_dtor): Remove the source_file reference.
827 (update_static_tracepoint): Replace bp_location field source_file
828 references by symtab field references.
829 (breakpoint_free_objfile): New function.
830 * breakpoint.h (struct bp_location): Extend the comment for line_number.
831 Replace the field source_file by field symtab, extend its comment.
832 (breakpoint_free_objfile): New declaration.
833 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
834 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
835 field source_file references by symtab field references.
836
837 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
838
839 Replace xfullpath calls by gdb_realpath calls.
840 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
841 function comment.
842 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
843 Remove it from the iterate_over_some_symtabs call.
844 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
845 Remove it from the dw2_map_expand_apply calls, remove a block handling
846 it.
847 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
848 Remove it from the iterate_over_some_symtabs call.
849 (partial_map_symtabs_matching_filename): Remove parameter full_path.
850 Remove it from the partial_map_expand_apply calls, remove a block
851 handling it. Drop gdb_realpath call and cleanups from the real_path
852 handling.
853 * source.c (openp): Drop the comment part about xfullpath. Replace
854 xfullpath calls by gdb_realpath calls.
855 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
856 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
857 from method map_symtabs_matching_filename and its comment.
858 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
859 gdb_realpath call.
860 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
861 remove it also from the function comment, remove a block handling it.
862 Drop gdb_realpath call and cleanups from the real_path handling.
863 (iterate_over_symtabs): Drop variable full_path and its use.
864 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
865 * utils.c (xfullpath): Remove.
866 * utils.h (xfullpath): Remove.
867
868 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
869
870 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
871 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
872 (ALLDEPFILES): Add ppc64-tdep.c.
873 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
874 ppc64-tdep.o to gdb_target_obs.
875 * ppc64-tdep.h: New file.
876 * ppc64-tdep.c: New file.
877 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
878 ppc-linux-tdep.c to here.
879 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
880 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
881 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
882 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
883 from ppc-linux-tdep.c to here.
884 (ppc64_convert_from_func_ptr_addr): Rename from
885 ppc64_linux_convert_from_func_ptr_addr to
886 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
887 here.
888 * rs6000-tdep.c:
889 (read_insn): Move from ppc-linux-tdep.c to here.
890 (insns_match_pattern, insn_d_field, insn_ds_field): Move
891 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
892 * ppc-linux-tdep.c: Include ppc64-tdep.h.
893 Removed above functions.
894 (ppc_linux_init_abi): Adjust.
895
896 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
897
898 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
899
900 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
901
902 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
903
904 2013-02-01 Pedro Alves <palves@redhat.com>
905
906 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
907 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
908
909 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
910
911 * elfread.c (elf_symfile_read): Limit separate debug info additions to
912 files with no separate debug info.
913 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
914 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
915 only for files with no separate debug info.
916
917 2013-01-31 Tom Tromey <tromey@redhat.com>
918
919 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
920 change type.
921 (struct jit_program_space_data): Rename from jit_inferior_data.
922 Update comments.
923 (get_jit_program_space_data): Rename from get_jit_inferior_data.
924 Change return type. Attach data to program space.
925 (jit_program_space_data_cleanup): Rename from
926 jit_inferior_data_cleanup; change argument type.
927 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
928 change type.
929 (jit_register_code): Update.
930 (jit_update_inferior_cache): Remove.
931 (jit_breakpoint_deleted): Get jit data from the location's program
932 space.
933 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
934 'ps_data', change type.
935 (jit_inferior_init, jit_breakpoint_re_set_internal)
936 (jit_event_handler): Update.
937 (free_objfile_data): Get data from objfile's program space.
938 (_initialize_jit): Update.
939
940 2013-01-31 Tom Tromey <tromey@redhat.com>
941
942 PR gdb/13987:
943 * jit.c (struct jit_inferior_data) <cached_code_address,
944 jit_breakpoint>: New fields.
945 (jit_breakpoint_re_set_internal): Fix logging. Only create
946 breakpoint if cached address has changed.
947 (jit_update_inferior_cache, jit_breakpoint_deleted): New
948 functions.
949 (_initialize_jit): Register breakpoint deleted observer.
950
951 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
952
953 * infrun.c (handle_syscall_event): Remove unused gdbarch.
954 (save_infcall_suspend_state): Ifdef out unused inf.
955 (restore_infcall_suspend_state): Ifdef out unused inf.
956 * jit.c (jit_register_code): Remove unused i, b, inf_data.
957 (jit_frame_sniffer): Remove unused inf_data.
958
959 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
960
961 * c-exp.y (classify_inner_name): Remove unused type.
962 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
963 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
964 need_escape.
965 (c_get_string): Remove unused kind.
966 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
967
968 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
969
970 * charset.c (intermediate_encoding): Remove unused i.
971 * completer.c (signal_completer): Remove unused i.
972 * continuations.c (discard_my_continuations_1): Remove unused
973 continuation_ptr.
974 * corelow.c (core_close): Remove unuseD name.
975 (get_core_siginfo): Remove unused pid.
976 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
977 i, cps.
978 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
979 (loclist_describe_location): Remove unused first.
980 * event-top.c (command_line_handler): Remove unused got_eof.
981 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
982 (resize_section_table): Remove unused old_value.
983 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
984 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
985 * i386-tdep.c (i386_process_record): Remove unused rex.
986 * infcmd.c (get_return_value): Remove unused uiout.
987 * jv-lang.c (type_from_class): Remove unused is_array.
988 * jv-valprint.c (java_val_print): Remove unused i.
989 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
990 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
991 * m2-typeprint.c (m2_print_type): Remove unused code.
992 * macroexp.c (get_character_constant): Remove unused body_start.
993 (macro_stringify): Remove unused result.
994 * objc-lang.c (find_methods): Remove unused gdbarch.
995 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
996 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
997 * stack.c (print_frame_args): Remove unused summary.
998 * thread.c (thread_apply_command): Remove unused p.
999 * valarith.c (value_x_unop): Remove unused mangle_ptr.
1000 * valops.c (search_struct_method): Remove unused skip.
1001 * valprint.c (generic_val_print): Remove unused byte_order.
1002 * varobj.c (varobj_update): Remove unused changed.
1003 * cli/cli-cmds.c (complete_command): Remove unused next_item.
1004 (alias_command): Remove unused c.
1005 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
1006 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
1007 format.
1008 (mi_cmd_data_write_memory): Remove unused word_format.
1009 (mi_cmd_data_write_memory_bytes): Remove unused r.
1010 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1011 p_start, p_end.
1012 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1013 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1014 line_width.
1015
1016 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1017
1018 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1019 * symtab.c (iterate_over_symtabs): Remove unused s.
1020 (find_pc_sect_symtab): Remove unused pspAce.
1021 (find_pc_sect_line): Remove unused alt_symtab.
1022 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1023 (completion_list_add_name): Remove unused newsize.
1024
1025 2013-01-31 Tom Tromey <tromey@redhat.com>
1026
1027 PR c++/14998:
1028 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1029 TYPE_CODE_FUNC.
1030
1031 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1032
1033 * target.c (target_read_string): Remove unused origlen.
1034
1035 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1036
1037 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1038 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1039 * ax-general.c (ax_print): Remove unused is_float.
1040 * blockframe.c (block_innermost_frame): Remove unused start, end.
1041 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1042
1043 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1044
1045 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1046 (svr4_read_so_list): Remove unused lmo.
1047 * solib-target.c (solib_target_relocate_section_addresses): Remove
1048 unused flags.
1049
1050 2013-01-30 Tom Tromey <tromey@redhat.com>
1051
1052 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1053
1054 2013-01-30 Tom Tromey <tromey@redhat.com>
1055
1056 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1057 * utils.c (gnu_debuglink_crc32): Remove.
1058 * utils.h (gnu_debuglink_crc32): Don't declare.
1059
1060 2013-01-30 Tom Tromey <tromey@redhat.com>
1061
1062 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1063 (read_structure_type, read_enumeration_type): Remove cast.
1064
1065 2013-01-30 Tom Tromey <tromey@redhat.com>
1066
1067 * dwarf2read.c (read_namespace_type): Remove cast.
1068 (read_typedef): Likewise.
1069
1070 2013-01-29 Tom Tromey <tromey@redhat.com>
1071
1072 * dwarf2read.c (free_dwo_file): Remove assert.
1073
1074 2013-01-29 Tom Tromey <tromey@redhat.com>
1075
1076 * value.c (deprecated_set_value_modifiable): Remove.
1077 * value.h (deprecated_set_value_modifiable): Remove.
1078
1079 2013-01-28 Doug Evans <dje@google.com>
1080
1081 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1082 to addresses from dwo files.
1083
1084 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1085
1086 * valops.c (find_overload_match): Remove unused argument 'lax'.
1087 * value.h: Remove unused argument 'lax' from the declaration of
1088 find_overload_match.
1089 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1090 to find_overload_match.
1091 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1092 argument to find_overload_match.
1093
1094 2013-01-25 Tom Tromey <tromey@redhat.com>
1095
1096 * dwarf2read.c (processing_has_namespace_info): Remove.
1097 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1098 (process_die, read_func_scope, dwarf2_start_symtab)
1099 (new_symbol_full): Update.
1100
1101 2013-01-25 Tom Tromey <tromey@redhat.com>
1102
1103 * cp-namespace.c (cp_set_block_scope): Remove.
1104 * cp-support.h (cp_set_block_scope): Remove.
1105 * dbxread.c: Include block.h.
1106 (cp_set_block_scope): New function.
1107 (process_one_symbol): Update.
1108 * dwarf2read.c (read_func_scope): Use block_set_scope.
1109
1110 2013-01-25 Pedro Alves <palves@redhat.com>
1111
1112 * remote.c (add_current_inferior_and_thread): Tweak comment.
1113
1114 2013-01-25 Tom Tromey <tromey@redhat.com>
1115
1116 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1117 (cp_add_using_directive): Add 'copy_names' argument.
1118 * cp-support.h (cp_add_using_directive): Update.
1119 (struct using_direct) <import_src, import_dest, alias,
1120 declaration>: Now const.
1121 * dwarf2read.c (read_import_statement): Use obconcat.
1122 Don't copy names passed to cp_add_using_directive.
1123
1124 2013-01-25 Tom Tromey <tromey@redhat.com>
1125
1126 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1127
1128 2013-01-25 Pedro Alves <palves@redhat.com>
1129
1130 * remote.c (stop_reply_extract_thread): New.
1131 (add_current_inferior_and_thread): New parameter 'wait_status'.
1132 Handle it.
1133 (remote_start_remote): Pass wait status to
1134 add_current_inferior_and_thread.
1135 (extended_remote_run): Update comment.
1136 (extended_remote_create_inferior_1): Pass wait status to
1137 add_current_inferior_and_thread.
1138
1139 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1140 Ulrich Weigand <uweigand@de.ibm.com>
1141
1142 * valarith.c (value_vector_widen): New function for replicating a
1143 scalar into a vector.
1144 (value_binop): Use value_vector_widen to widen scalar to vector
1145 rather than casting, this better matches gcc C behaviour.
1146 * valops.c (value_casst): Update logic for casting between vector
1147 types, and for casting from scalar to vector, try to match gcc C
1148 behaviour.
1149 * value.h (value_vector_widen): Declare.
1150 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1151 function, handle special case for casting scalar to vector.
1152 (opencl_relop): Use opencl_value_cast.
1153 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1154 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1155 in order to use opencl_value_cast.
1156
1157 2013-01-25 Yao Qi <yao@codesourcery.com>
1158
1159 * event-loop.c: Include "queue.h".
1160 (gdb_event_p): New typedef.
1161 (DECLARE_QUEUE_P): Use.
1162 (DEFINE_QUEUE_P): Use.
1163 (async_queue_event): Remove.
1164 (gdb_event_xfree): New.
1165 (initialize_event_loop): New.
1166 (process_event): Use QUEUE macros.
1167 (event_queue): Remove.
1168 (gdb_wait_for_event): Caller update.
1169 (check_async_event_handlers): Likewise.
1170 (poll_timers): Likewise.
1171 * event-loop.h (initialize_event_loop): Declare.
1172 * event-loop.c (gdb_event_xfree): New.
1173 * top.c (gdb_init): Call initialize_event_loop.
1174
1175 2013-01-25 Yao Qi <yao@codesourcery.com>
1176
1177 * event-loop.c (async_queue_event): Remove one parameter
1178 'position'. Remove code handling 'position' == TAIL.
1179 (gdb_wait_for_event): Caller update.
1180 (check_async_event_handlers): Caller update.
1181 (poll_timers): Caller update.
1182 * event-loop.h (enum queue_position): Remove.
1183
1184 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1185
1186 * MAINTAINERS: Update my email.
1187
1188 2013-01-25 Yao Qi <yao@codesourcery.com>
1189
1190 * main.c (print_gdb_help): Remove "--epoch" from the help
1191 message.
1192
1193 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1194
1195 * symtab.c (skip_prologue_using_sal): Consider a file
1196 change the same as an increased line number
1197
1198 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1199
1200 * MAINTAINERS (Write After Approval): Add myself to the list.
1201
1202 2013-01-24 Tom Tromey <tromey@redhat.com>
1203
1204 * ada-lang.h (ada_decode_symbol): Make return type const.
1205 * ada-lang.c (ada_decode_symbol): Likewise.
1206
1207 2013-01-23 Doug Evans <dje@google.com>
1208
1209 * linespec.c (find_linespec_symbols): Make static.
1210
1211 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1212
1213 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1214 type on float conversion for complex type.
1215
1216 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1217
1218 Add a new class gdb.Architecture which exposes GDB's
1219 internal representation of architecture via GDB Python API.
1220 * Makefile.in: Add entries corresponding to the new file
1221 python/py-arch.c.
1222 * NEWS (Python Scripting): Add entries for the new class
1223 gdb.Architecture and the new method gdb.Frame.architecture.
1224 * python/py-arch.c: Implement gdb.Architecture class.
1225 * python/py-frame.c (frapy_arch): Implement the method
1226 gdb.Frame.architecture().
1227 (frame_object_methods): Add 'architecture' to the method table.
1228 * python/python-internal.h: Add declarations of new utility
1229 functions.
1230 * python/python.c (_initialize_python): Initialize
1231 gdb.Architecture class.
1232
1233 2013-01-23 Doug Evans <dje@google.com>
1234
1235 Work around binutils/15021.
1236 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1237 type_unit_group out of union s. All uses updated.
1238 (read_index_from_section): Watch for index version 8.
1239 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1240 an imported symtab.
1241 (write_psymtabs_to_index): Increment version number to 8.
1242
1243 2013-01-22 Pedro Alves <palves@redhat.com>
1244
1245 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1246 user-visible.
1247
1248 2013-01-22 Pedro Alves <palves@redhat.com>
1249
1250 * annotate.c (annotate_breakpoints_changed): Rename to ...
1251 (annotate_breakpoints_invalid): ... this. Make static.
1252 (breakpoint_changed): Adjust.
1253 (_initialize_annotate): Always install the observers. Install a
1254 "breakpoint_created" observer.
1255 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1256 * breakpoint.c (set_breakpoint_condition)
1257 (breakpoint_set_commands, do_map_commands_command)
1258 (init_raw_breakpoint, clear_command, set_ignore_count)
1259 (enable_breakpoint_disp): No longer call
1260 annotate_breakpoints_changed.
1261
1262 2013-01-22 Pedro Alves <palves@redhat.com>
1263
1264 * annotate.c: Include "inferior.h".
1265 (frames_invalid_emitted)
1266 (breakpoints_invalid_emitted): New globals.
1267 (async_background_execution_p): New function.
1268 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1269 emitting the annotation if it has already been emitted.
1270 (annotate_display_prompt): New function.
1271 * annotate.h (annotate_display_prompt): New declaration.
1272 * event-top.c: Include annotate.h.
1273 (display_gdb_prompt): Call annotate_display_prompt.
1274
1275 2013-01-22 Pedro Alves <palves@redhat.com>
1276
1277 * annotate.c (ignore_count_changed): Delete.
1278 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1279 (annotate_ignore_count_change): Delete.
1280 (annotate_stopped): Don't emit a delayed breakpoints-changed
1281 annotation.
1282 * annotate.h (annotate_ignore_count_change): Delete.
1283 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1284 annotate_ignore_count_change.
1285
1286 2013-01-22 Tom Tromey <tromey@redhat.com>
1287
1288 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1289 require_rvalue for a register location.
1290
1291 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1292
1293 * breakpoint.c (print_one_breakpoint_location): Add MI
1294 field 'thread-groups' when printing a breakpoint.
1295 (output_thread_groups): New function.
1296
1297 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1298
1299 * python/lib/gdb/commands/explore.py
1300 (CompoundExplorer.explore_expr): Correct the name of a method
1301 being invoked.
1302 (ExploreTypeCommand.invoke): Add a missing 'return'.
1303
1304 2013-01-21 Tom Tromey <tromey@redhat.com>
1305
1306 * gdb_obstack.h (obconcat): Move declaration here, from...
1307 * symfile.h (obconcat): ... here.
1308 * gdb_obstack.c: New file.
1309 (obconcat): Move from...
1310 * symfile.c (obconcat): ... here.
1311 * Makefile.in (SFILES): Add gdb_obstack.c.
1312 (COMMON_OBS): Add gdb_obstack.o.
1313
1314 2013-01-21 Tom Tromey <tromey@redhat.com>
1315
1316 * symfile.h (obsavestring): Don't declare.
1317 * symfile.c (obsavestring): Remove.
1318 * ada-exp.y: Use obstack_copy0, not obsavestring.
1319 * ada-lang.c: Use obstack_copy0, not obsavestring.
1320 * coffread.c: Use obstack_copy0, not obsavestring.
1321 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1322 * dbxread.c: Use obstack_copy0, not obsavestring.
1323 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1324 * jit.c: Use obstack_copy0, not obsavestring.
1325 * mdebugread.c: Use obstack_copy0, not obsavestring.
1326 * psymtab.c: Use obstack_copy0, not obsavestring.
1327 * stabsread.c: Use obstack_copy0, not obsavestring.
1328 * xcoffread.c: Use obstack_copy0, not obsavestring.
1329
1330 2013-01-21 Tom Tromey <tromey@redhat.com>
1331
1332 * dwarf2read.c (fixup_go_packaging): Save package name
1333 on objfile obstack.
1334 * gdbtypes.c (init_type): Don't copy name.
1335
1336 2013-01-21 Tom Tromey <tromey@redhat.com>
1337
1338 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1339 const.
1340 (struct attribute) <u.str>: Now const.
1341 (struct fnfieldlist) <name>: Now const.
1342 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1343 (partial_die_parent_scope): Make return type const.
1344 (partial_die_full_name, add_partial_symbol): Update.
1345 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1346 'name' const.
1347 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1348 (read_file_scope, read_func_scope, dwarf2_add_field)
1349 (dwarf2_add_member_fn, read_structure_type)
1350 (process_enumeration_scope, read_array_type, read_module_type)
1351 (read_base_type, read_subrange_type): Update.
1352 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1353 (new_symbol_full, guess_full_die_structure_name): Update.
1354 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1355 (dwarf2_name): Return const type.
1356 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1357 const.
1358
1359 2013-01-21 Tom Tromey <tromey@redhat.com>
1360
1361 * gdbtypes.c (init_type): Make 'name' const.
1362 * gdbtypes.h (init_type): Update.
1363
1364 2013-01-21 Tom Tromey <tromey@redhat.com>
1365
1366 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1367 (start_symtab): Make 'name' and 'dirname' const. Use
1368 set_last_source_file.
1369 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1370 (last_source_file): Define. Now static.
1371 (set_last_source_file, get_last_source_file): New functions.
1372 * buildsym.h (last_source_file): Don't declare.
1373 (start_symtab): Update.
1374 (set_last_source_file, get_last_source_file): Declare.
1375 * coffread.c (complete_symtab): Use set_last_source_file.
1376 (coff_end_symtab): Likewise.
1377 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1378 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1379 set_last_source_file.
1380 (process_one_symbol): Use get_last_source_file.
1381 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1382 (psymtab_to_symtab_1): Use get_last_source_file.
1383 * xcoffread.c (process_linenos): Use get_last_source_file.
1384 (complete_symtab): Use set_last_source_file.
1385 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1386 (scan_xcoff_symtab): Use set_last_source_file.
1387
1388 2013-01-21 Tom Tromey <tromey@redhat.com>
1389
1390 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1391 (symbol_set_names): Remove casts. Handle field const-ness.
1392
1393 2013-01-21 Tom Tromey <tromey@redhat.com>
1394
1395 * dwarf2read.c (new_symbol_full): Remove cast.
1396 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1397 * symtab.h (symbol_set_demangled_name): Update.
1398
1399 2013-01-21 Tom Tromey <tromey@redhat.com>
1400
1401 * main.c (captured_main): Call bfd_init.
1402
1403 2013-01-21 Tom Tromey <tromey@redhat.com>
1404
1405 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1406 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1407 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1408 * NEWS: Update.
1409
1410 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1411
1412 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1413
1414 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1415
1416 Fix gdb.fortran/common-block.exp crash in PIE mode.
1417 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1418 LOC_COMMON_BLOCK.
1419 * f-valprint.c (info_common_command_for_block): Expect
1420 LOC_COMMON_BLOCK in gdb_assert.
1421 * symtab.h (struct general_symbol_info): Update comment for the
1422 common_block member.
1423 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1424 (enum address_class): New member LOC_COMMON_BLOCK.
1425
1426 2013-01-18 David Blaikie <dblaikie@gmail.com>
1427
1428 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1429
1430 2013-01-18 Tom Tromey <tromey@redhat.com>
1431
1432 PR c++/14999:
1433 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1434 Call require_rvalue.
1435
1436 2013-01-18 Yao Qi <yao@codesourcery.com>
1437
1438 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1439 (dbx_read_symtab): New declaration.
1440 (dbx_psymtab_to_symtab): Delete.
1441 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1442 Rename parameter PST to SELF. Exchanged two parameters.
1443 (start_psymtab): Caller update.
1444 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1445 (dwarf2_read_symtab): New declaration.
1446 (dwarf2_psymtab_to_symtab): Delete.
1447 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1448 Rename parameter PST to SELF. Exchanged two parameters.
1449 (create_partial_symtab): Caller update.
1450 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1451 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1452 Rename parameter PST to SELF. Exchanged two parameters.
1453 (parse_partial_symbols, new_psymtab): Caller update.
1454 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1455 two parameters.
1456 * psymtab.c (psymtab_to_symtab): Caller update.
1457 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1458 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1459 Rename parameter PST to SELF. Exchanged two parameters.
1460 (xcoff_start_psymtab): Caller update.
1461
1462 2013-01-18 Yao Qi <yao@codesourcery.com>
1463
1464 * infrun.c (proceed): Rename local variable 'oneproc' to
1465 'force_step'.
1466
1467 2013-01-17 Doug Evans <dje@google.com>
1468
1469 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1470 (dw2_build_type_unit_groups): Delete. All uses updated.
1471
1472 * symtab.h (struct symbol_search): Add comment.
1473
1474 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1475
1476 * symtab.c (compare_filenames_for_search): New comment for
1477 HAS_DRIVE_SPEC.
1478
1479 2013-01-17 Tom Tromey <tromey@redhat.com>
1480
1481 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1482
1483 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1484
1485 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1486 initialize it by existing make_cleanup. Call new do_cleanups.
1487
1488 2013-01-17 Tom Tromey <tromey@redhat.com>
1489
1490 * cp-abi.c (cp_abi_completer): New function.
1491 (_initialize_cp_abi): Set completer for "set cp-abi".
1492
1493 2013-01-17 Tom Tromey <tromey@redhat.com>
1494
1495 * mem-break.c: Remove obsolete comment.
1496 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1497
1498 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1499
1500 * jit.c (jit_reader_load_command): Interpret the jit reader name
1501 as an absolute path if it begins with a forward slash.
1502
1503 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1504
1505 PR gdb/14550
1506
1507 * jit.c (finalize_symtab): Ensure that only the global block has a
1508 NULL superblock.
1509
1510 2013-01-17 Pedro Alves <palves@redhat.com>
1511
1512 * acinclude.m4: Include ../config/plugins.m4,
1513 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1514 * Makefile.in (aclocal_m4_deps): Update.
1515 * aclocal.m4: Renegerate.
1516
1517 2013-01-16 Doug Evans <dje@google.com>
1518
1519 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1520
1521 2013-01-16 Pedro Alves <palves@redhat.com>
1522 Tom Tromey <tromey@redhat.com>
1523
1524 PR cli/7221:
1525 * NEWS: Add "catch signal".
1526 * breakpoint.c (base_breakpoint_ops): No longer static.
1527 (bpstat_explains_signal): New function.
1528 (init_catchpoint): No longer static.
1529 (base_breakpoint_explains_signal): New function.
1530 (base_breakpoint_ops): Initialize new field.
1531 * breakpoint.h (enum bpstat_signal_value): New.
1532 (struct breakpoint_ops) <explains_signal>: New field.
1533 (bpstat_explains_signal): Remove macro, declare as function.
1534 (base_breakpoint_ops, init_catchpoint): Declare.
1535 * break-catch-sig.c: New file.
1536 * inferior.h (signal_catch_update): Declare.
1537 * infrun.c (signal_catch): New global.
1538 (handle_syscall_event): Update for change to
1539 bpstat_explains_signal.
1540 (handle_inferior_event): Likewise. Always handle random signals
1541 via bpstats.
1542 (signal_cache_update): Check signal_catch.
1543 (signal_catch_update): New function.
1544 (_initialize_infrun): Initialize signal_catch.
1545 * Makefile.in (SFILES): Add break-catch-sig.c.
1546 (COMMON_OBS): Add break-catch-sig.o.
1547
1548 2013-01-16 Tom Tromey <tromey@redhat.com>
1549
1550 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1551 (print_one_catch_solib, print_one_catch_syscall)
1552 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1553 "catch-type".
1554
1555 2013-01-16 Yao Qi <yao@codesourcery.com>
1556
1557 * printcmd.c (current_display_number): Make it static.
1558
1559 2013-01-16 Yao Qi <yao@codesourcery.com>
1560
1561 * infcmd.c (step_once): Don't check '!single_inst' as it was
1562 checked before.
1563
1564 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1565
1566 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1567
1568 2013-01-14 Tom Tromey <tromey@redhat.com>
1569
1570 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1571 set command.
1572 * command.h (add_setshow_string_noescape_cmd): Update.
1573 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1574 (complete_set_gnutarget): New function.
1575 (_initialize_core): Set the "set gnutarget" completer.
1576
1577 2013-01-14 Tom Tromey <tromey@redhat.com>
1578
1579 PR symtab/14442:
1580 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1581 (c_type_print_modifier): Likewise.
1582 * dwarf2read.c (read_tag_restrict_type): New function.
1583 (read_type_die_1): Handle DW_TAG_restrict_type.
1584 * gdbtypes.c (make_restrict_type): New function.
1585 (recursive_dump_type): Handle TYPE_RESTRICT.
1586 * gdbtypes.h (enum type_flag_values): Renumber.
1587 (enum type_instance_flag_value): Add
1588 TYPE_INSTANCE_FLAG_RESTRICT.
1589 (TYPE_RESTRICT): New macro.
1590 (make_restrict_type): Declare.
1591
1592 2013-01-14 Tom Tromey <tromey@redhat.com>
1593
1594 PR symtab/14931:
1595 * psymtab.c (struct psymtab_state): New.
1596 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1597 functions.
1598 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1599 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1600
1601 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1602 Pedro Alves <palves@redhat.com>
1603
1604 PR remote/14786
1605
1606 * remote.c (remote_threads_info): Make a copy of the reply from
1607 qfThreadInfo and use that instead of rs->buf.
1608
1609 2013-01-14 Yao Qi <yao@codesourcery.com>
1610
1611 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1612 (dbx_psymtab_to_symtab): Likewise.
1613 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1614 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1615 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1616
1617 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1618
1619 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1620 make_cleanup_restore_current_language. Call set_language. Move
1621 OLD_CHAIN and INNER_CHAIN cleanups.
1622 * utils.c (do_restore_current_language)
1623 (make_cleanup_restore_current_language): New functions.
1624 * utils.h (make_cleanup_restore_current_language): New declaration.
1625
1626 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1627
1628 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1629 non-existing files.
1630
1631 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1632 non-existing files if FILENAME is already absolute.
1633
1634 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1635
1636 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1637 fputs_filtered. Append trailing newline.
1638
1639 2013-01-11 Yao Qi <yao@codesourcery.com>
1640 Stan Shebs <stan@codesourcery.com>
1641
1642 * psymtab.c (init_psymbol_list): Clarify the comment.
1643
1644 2013-01-11 Yao Qi <yao@codesourcery.com>
1645
1646 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1647 (update_dprintf_command_list): Assert that 'printf_line' is
1648 non-null. Remove condition check.
1649
1650 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1651
1652 Code cleanup.
1653 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1654 type const char *.
1655 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1656 const char *.
1657 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1658
1659 2013-01-09 Anthony Green <green@moxielogic.com>
1660
1661 * cp-abi.c (cplus_print_vtable): Don't return value from void
1662 function.
1663 * ada-lang.c (re_set_catch_assert): Ditto.
1664
1665 2013-01-09 Doug Evans <dje@google.com>
1666
1667 * symfile.h (quick_symbol_functions): Delete member
1668 pre_expand_symtabs_matching. All uses removed.
1669 * dwarf2read.c (dw2_lookup_symbol): Implement.
1670 (dw2_do_expand_symtabs_matching): Delete.
1671 (dw2_pre_expand_symtabs_matching): Delete.
1672 (struct dw2_symtab_iterator): New type.
1673 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1674 (dw2_expand_symtabs_for_function): Rewrite.
1675 (dwarf2_gdb_index_functions): Update.
1676 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1677 (psym_functions): Update.
1678
1679 2013-01-09 Tom Tromey <tromey@redhat.com>
1680
1681 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1682 * configure: Rebuild.
1683 * configure.ac: Add somread.o to the build if BFD has SOM
1684 support.
1685 * somread.c: Include som/aout.h, not syms.h.
1686 (som_symtab_read): Use som_external_symbol_dictionary_record.
1687 Unpack records manually.
1688 (_initialize_somread): Declare.
1689
1690 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1691
1692 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1693 Cast return_address to 64bits.
1694
1695 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1696
1697 * printcmd.c: Remove define of function output_command.
1698 * tracepoint.c: Remove extern of function output_command.
1699 * valprint.h: (output_command): New extern.
1700
1701 2013-01-07 Tom Tromey <tromey@redhat.com>
1702
1703 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1704 Remove.
1705 (objc_language_defn): Use c_printchar, c_printstr,
1706 c_emit_char.
1707
1708 2013-01-07 Tom Tromey <tromey@redhat.com>
1709
1710 PR cli/7719:
1711 * NEWS: Update.
1712 * ada-valprint.c (printstr, print_field_values): Remove
1713 "inspect_it" code.
1714 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1715 code.
1716 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1717 code.
1718 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1719 * main.c (captured_main): Remove "epoch" argument.
1720 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1721 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1722 * p-valprint.c (pascal_object_print_value_fields): Remove
1723 "inspect_it" code.
1724 * printcmd.c (print_command_1): Remove 'inspect' argument.
1725 (print_command, call_command): Update.
1726 (inspect_command): Remove.
1727 (_initialize_printcmd): Make "inspect" an alias for "print".
1728 * top.c (epoch_interface): Remove.
1729 * top.h (epoch_interface): Remove.
1730 * valprint.c (user_print_options): Update.
1731 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1732 * valprint.h (struct value_print_options) <inspect_it>: Remove
1733 field.
1734
1735 2013-01-04 Tom Tromey <tromey@redhat.com>
1736
1737 * valprint.h (read_string): Add 'extern'.
1738
1739 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1740
1741 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1742 used to decide whether to define darwin_read_dyld_info or not.
1743
1744 2013-01-03 Pierre Muller <muller@sourceware.org>
1745
1746 * main.c (relocate_gdb_directory): Avoid calling stat function
1747 if DIR is empty.
1748
1749 2013-01-03 Yao Qi <yao@codesourcery.com>
1750
1751 * psymtab.c (fixup_psymbol_section): Update declaration.
1752 (fixup_psymbol_section): Remove code returning value.
1753
1754 2013-01-03 Yao Qi <yao@codesourcery.com>
1755
1756 * symtab.h: Remove some out of date comments.
1757 (enum exception_event_kind): Move it ...
1758 * breakpoint.c: ... here.
1759
1760 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1761
1762 PR gdb/14405
1763 * darwin-nat.c (darwin_read_dyld_info): Only build if
1764 TASK_DYLD_INFO_COUNT is defined.
1765 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1766 TASK_DYLD_INFO_COUNT is defined.
1767
1768 2013-01-02 Tom Tromey <tromey@redhat.com>
1769
1770 * symfile.h (struct ecoff_debug_hack): Remove.
1771 * objfiles.c: Don't include mdebugread.h.
1772
1773 2013-01-02 Tom Tromey <tromey@redhat.com>
1774
1775 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1776 * configure.ac: Check for Mach-O support in BFD. Update
1777 CONFIG_OBS.
1778 * configure: Rebuild.
1779
1780 2013-01-02 Tom Tromey <tromey@redhat.com>
1781
1782 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1783 * configure.ac: Use GDB_AC_CHECK_BFD.
1784 * configure: Rebuild.
1785
1786 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1787
1788 * MAINTAINERS: Update my email.
1789
1790 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1791
1792 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1793
1794 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1795
1796 * rs6000-nat.c (bss_data_overlap): New function.
1797 (vmap_symtab): Use it to adjust the .bss section's offset.
1798
1799 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1800
1801 Update year range in copyright notice of all files.
1802
1803 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1804
1805 * top.c (print_gdb_version): Update copyright year.
1806
1807 For older changes see ChangeLog-2012.
1808 \f
1809 Local Variables:
1810 mode: change-log
1811 left-margin: 8
1812 fill-column: 74
1813 version-control: never
1814 coding: utf-8
1815 End:
This page took 0.081445 seconds and 5 git commands to generate.